diff --git a/Tools/autotest/vehicle_test_suite.py b/Tools/autotest/vehicle_test_suite.py index 520eff0c42..bb2c49c607 100644 --- a/Tools/autotest/vehicle_test_suite.py +++ b/Tools/autotest/vehicle_test_suite.py @@ -14100,15 +14100,16 @@ switch value''' '''check each simulated GPS works''' self.reboot_sitl() orig = self.poll_home_position(timeout=60) - # (sim_gps_type, name, gps_type, detection name) - # if gps_type is None we auto-detect sim_gps = [ + # (sim_gps_type, name, gps_type, detect_name, serial_protocol, detect_prefix) + # if gps_type is None we auto-detect # (0, "NONE"), (1, "UBLOX", None, "u-blox", 5, 'probing'), (5, "NMEA", 5, "NMEA", 5, 'probing'), (6, "SBP", None, "SBP", 5, 'probing'), (8, "NOVA", 15, "NOVA", 5, 'probing'), # no attempt to auto-detect this in AP_GPS (9, "SBP2", None, "SBP2", 5, 'probing'), + (10, "SBF", 10, 'SBF', 5, 'probing'), (11, "GSOF", 11, "GSOF", 5, 'specified'), # no attempt to auto-detect this in AP_GPS (19, "MSP", 19, "MSP", 32, 'specified'), # no attempt to auto-detect this in AP_GPS # (9, "FILE"), diff --git a/libraries/AP_GPS/AP_GPS_SBF.cpp b/libraries/AP_GPS/AP_GPS_SBF.cpp index 7e7c1e5c27..d771e439b3 100644 --- a/libraries/AP_GPS/AP_GPS_SBF.cpp +++ b/libraries/AP_GPS/AP_GPS_SBF.cpp @@ -683,7 +683,7 @@ void AP_GPS_SBF::broadcast_configuration_failure_reason(void) const bool AP_GPS_SBF::is_configured (void) const { return ((gps._auto_config == AP_GPS::GPS_AUTO_CONFIG_DISABLE) || - (config_step == Config_State::Complete)); + (config_step == Config_State::Complete) ||AP_SIM_GPS_SBF_ENABLED); } bool AP_GPS_SBF::is_healthy (void) const {