autotest: include SBF when testing GPS backends work

This commit is contained in:
Peter Barker 2024-08-19 13:26:32 +10:00 committed by Peter Barker
parent 07b27d76be
commit 2e1364e3b0
2 changed files with 4 additions and 3 deletions

View File

@ -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"),

View File

@ -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 {