Browse Source

uncrustify libraries/AP_GPS/AP_GPS_Shim.h

mission-4.1.18
uncrustify 13 years ago committed by Pat Hickey
parent
commit
5c24c373d0
  1. 8
      libraries/AP_GPS/AP_GPS_Shim.h

8
libraries/AP_GPS/AP_GPS_Shim.h

@ -17,9 +17,11 @@ @@ -17,9 +17,11 @@
class AP_GPS_Shim : public GPS
{
public:
AP_GPS_Shim() : GPS(NULL) {}
AP_GPS_Shim() : GPS(NULL) {
}
virtual void init(enum GPS_Engine_Setting nav_setting = GPS_ENGINE_NONE) {};
virtual void init(enum GPS_Engine_Setting nav_setting = GPS_ENGINE_NONE) {
};
virtual bool read(void) {
bool updated = _updated;
_updated = false;
@ -29,7 +31,7 @@ public: @@ -29,7 +31,7 @@ public:
/// Set-and-mark-updated macro for the public member variables; each instance
/// defines a member function set_<variable>(<type>)
///
#define __GPS_SHIM_SET(__type, __name) void set_##__name(__type v) { __name = v; _updated = true; }
#define __GPS_SHIM_SET(__type, __name) void set_ ## __name(__type v) { __name = v; _updated = true; }
__GPS_SHIM_SET(uint32_t, time);
__GPS_SHIM_SET(long, latitude);
__GPS_SHIM_SET(long, longitude);

Loading…
Cancel
Save