Skip to content

Commit

Permalink
AP_GPS: fixed unconfigured uBlox pre-arm
Browse files Browse the repository at this point in the history
when GPS_GNSS_MODE is zero (the default) we could get stuck trying to
configure the GNSS for F9P
  • Loading branch information
tridge committed Aug 13, 2024
1 parent 8c6a427 commit d225683
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion libraries/AP_GPS/AP_GPS_UBLOX.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2303,7 +2303,14 @@ bool AP_GPS_UBLOX::is_healthy(void) const
uint8_t AP_GPS_UBLOX::populate_F9_gnss(void)
{
uint8_t cfg_count = 0;
if (params.gnss_mode != 0 && (_unconfigured_messages & CONFIG_F9)) {

if (params.gnss_mode == 0) {
_unconfigured_messages &= ~CONFIG_F9;
last_configured_gnss = params.gnss_mode;
return 0;
}

if ((_unconfigured_messages & CONFIG_F9) != 0) {
// ZED-F9P defaults are
// GPS L1C/A+L2C(ZED)
// SBAS L1C/A
Expand Down

0 comments on commit d225683

Please sign in to comment.