mirror of https://github.com/ArduPilot/ardupilot
uncrustify libraries/AP_GPS/AP_GPS_Shim.h
This commit is contained in:
parent
cdaf2f923d
commit
5c24c373d0
|
@ -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:
|
|||
/// 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…
Reference in New Issue