This program is porting rosserial_arduino for mbed http://www.ros.org/wiki/rosserial_arduino This program supported the revision of 169 of rosserial. This program contains an example.
Dependencies: rosserial_mbed_lib mbed Servo
Diff: std_msgs/Time.h
- Revision:
- 1:098e75fd5ad2
- Parent:
- 0:06fc856e99ca
- Child:
- 3:dff241b66f84
--- a/std_msgs/Time.h Fri Aug 19 09:06:16 2011 +0000 +++ b/std_msgs/Time.h Sun Oct 16 07:17:43 2011 +0000 @@ -1,5 +1,5 @@ -#ifndef ros_Time_h -#define ros_Time_h +#ifndef ros_std_msgs_Time_h +#define ros_std_msgs_Time_h #include <stdint.h> #include <string.h> @@ -19,8 +19,8 @@ { int offset = 0; union { - unsigned long real; - unsigned long base; + uint32_t real; + uint32_t base; } u_sec; u_sec.real = this->data.sec; *(outbuffer + offset + 0) = (u_sec.base >> (8 * 0)) & 0xFF; @@ -29,8 +29,8 @@ *(outbuffer + offset + 3) = (u_sec.base >> (8 * 3)) & 0xFF; offset += sizeof(this->data.sec); union { - unsigned long real; - unsigned long base; + uint32_t real; + uint32_t base; } u_nsec; u_nsec.real = this->data.nsec; *(outbuffer + offset + 0) = (u_nsec.base >> (8 * 0)) & 0xFF; @@ -45,8 +45,8 @@ { int offset = 0; union { - unsigned long real; - unsigned long base; + uint32_t real; + uint32_t base; } u_sec; u_sec.base = 0; u_sec.base |= ((typeof(u_sec.base)) (*(inbuffer + offset + 0))) << (8 * 0); @@ -56,8 +56,8 @@ this->data.sec = u_sec.real; offset += sizeof(this->data.sec); union { - unsigned long real; - unsigned long base; + uint32_t real; + uint32_t base; } u_nsec; u_nsec.base = 0; u_nsec.base |= ((typeof(u_nsec.base)) (*(inbuffer + offset + 0))) << (8 * 0);