Browse Source

uncrustify libraries/AP_GPS/GPS.h

master
uncrustify 13 years ago committed by Pat Hickey
parent
commit
97035fbead
  1. 15
      libraries/AP_GPS/GPS.h

15
libraries/AP_GPS/GPS.h

@ -124,12 +124,18 @@ public:
uint32_t idleTimeout; uint32_t idleTimeout;
// components of velocity in 2D, in m/s // components of velocity in 2D, in m/s
float velocity_north(void) { return _status == GPS_OK? _velocity_north : 0; } float velocity_north(void) {
float velocity_east(void) { return _status == GPS_OK? _velocity_east : 0; } return _status == GPS_OK ? _velocity_north : 0;
}
float velocity_east(void) {
return _status == GPS_OK ? _velocity_east : 0;
}
// last ground speed in m/s. This can be used when we have no GPS // last ground speed in m/s. This can be used when we have no GPS
// lock to return the last ground speed we had with lock // lock to return the last ground speed we had with lock
float last_ground_speed(void) { return _last_ground_speed_cm * 0.01; } float last_ground_speed(void) {
return _last_ground_speed_cm * 0.01;
}
// the time we got our last fix in system milliseconds // the time we got our last fix in system milliseconds
@ -145,7 +151,8 @@ protected:
/// ///
/// @param s Stream connected to the GPS module. /// @param s Stream connected to the GPS module.
/// ///
GPS(Stream *s) : _port(s) {}; GPS(Stream *s) : _port(s) {
};
/// read from the GPS stream and update properties /// read from the GPS stream and update properties
/// ///

Loading…
Cancel
Save