Browse Source

AP_GPS: added all_configured() function

used for EKF to tell if gps_lag is valid
master
Andrew Tridgell 8 years ago committed by Randy Mackay
parent
commit
bdc0630ccf
  1. 5
      libraries/AP_GPS/AP_GPS.h

5
libraries/AP_GPS/AP_GPS.h

@ -377,6 +377,11 @@ public: @@ -377,6 +377,11 @@ public:
uint8_t first_unconfigured_gps(void) const;
void broadcast_first_configuration_failure_reason(void) const;
// return true if all GPS instances have finished configuration
bool all_configured(void) const {
return first_unconfigured_gps() == GPS_ALL_CONFIGURED;
}
private:
struct GPS_timing {
// the time we got our last fix in system milliseconds

Loading…
Cancel
Save