modify for Hydro version

Dependencies:   MODSERIAL

Fork of rosserial_mbed_lib by nucho

Revision:
5:8cd48977ec68
Parent:
4:684f39d0c346
Child:
6:3c54bc7badd4
--- a/sensor_msgs/NavSatStatus.h	Wed Feb 29 23:00:21 2012 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,65 +0,0 @@
-#ifndef _ROS_sensor_msgs_NavSatStatus_h
-#define _ROS_sensor_msgs_NavSatStatus_h
-
-#include <stdint.h>
-#include <string.h>
-#include <stdlib.h>
-#include "ros/msg.h"
-
-namespace sensor_msgs
-{
-
-  class NavSatStatus : public ros::Msg
-  {
-    public:
-      int8_t status;
-      uint16_t service;
-      enum { STATUS_NO_FIX =   -1         };
-      enum { STATUS_FIX =       0         };
-      enum { STATUS_SBAS_FIX =  1         };
-      enum { STATUS_GBAS_FIX =  2         };
-      enum { SERVICE_GPS =      1 };
-      enum { SERVICE_GLONASS =  2 };
-      enum { SERVICE_COMPASS =  4       };
-      enum { SERVICE_GALILEO =  8 };
-
-    virtual int serialize(unsigned char *outbuffer) const
-    {
-      int offset = 0;
-      union {
-        int8_t real;
-        uint8_t base;
-      } u_status;
-      u_status.real = this->status;
-      *(outbuffer + offset + 0) = (u_status.base >> (8 * 0)) & 0xFF;
-      offset += sizeof(this->status);
-      *(outbuffer + offset + 0) = (this->service >> (8 * 0)) & 0xFF;
-      *(outbuffer + offset + 1) = (this->service >> (8 * 1)) & 0xFF;
-      offset += sizeof(this->service);
-      return offset;
-    }
-
-    virtual int deserialize(unsigned char *inbuffer)
-    {
-      int offset = 0;
-      union {
-        int8_t real;
-        uint8_t base;
-      } u_status;
-      u_status.base = 0;
-      u_status.base |= ((uint8_t) (*(inbuffer + offset + 0))) << (8 * 0);
-      this->status = u_status.real;
-      offset += sizeof(this->status);
-      this->service |= ((uint16_t) (*(inbuffer + offset + 0))) << (8 * 0);
-      this->service |= ((uint16_t) (*(inbuffer + offset + 1))) << (8 * 1);
-      offset += sizeof(this->service);
-     return offset;
-    }
-
-    virtual const char * getType(){ return "sensor_msgs/NavSatStatus"; };
-    virtual const char * getMD5(){ return "331cdbddfa4bc96ffc3b9ad98900a54c"; };
-
-  };
-
-}
-#endif
\ No newline at end of file