AP_GPS: Always consider ublox as configured in sitl

This commit is contained in:
Michael du Breuil 2017-03-06 16:14:26 -07:00 committed by Randy Mackay
parent f6687a2d6c
commit 398ff823c0

View File

@ -105,11 +105,15 @@ public:
void inject_data(const uint8_t *data, uint16_t len) override;
bool is_configured(void) {
#if CONFIG_HAL_BOARD != HAL_BOARD_SITL
if (!gps._auto_config) {
return true;
} else {
return !_unconfigured_messages;
}
#else
return true;
#endif // CONFIG_HAL_BOARD != HAL_BOARD_SITL
}
void broadcast_configuration_failure_reason(void) const override;