-
Notifications
You must be signed in to change notification settings - Fork 18.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AP_GPS: fixed the check for disabling CONFIG_RATE_SOL config #29320
base: master
Are you sure you want to change the base?
Conversation
we should stop looking for SOL as soon as we know we have PVT, instead of waiting for all others to be cleared may help with https://discuss.ardupilot.org/t/fc-tries-to-config-gps-constantly-when-trying-to-arm-in-loiter-mode/129930
e6b7865
to
6ade8a5
Compare
I bisected the bug, this was the result:
|
@peterbarker looks right but will need testing on F9P if you did not do that already |
@@ -498,6 +498,10 @@ AP_GPS_UBLOX::_request_next_config(void) | |||
const config_list *list = config_M10; | |||
const uint8_t list_length = ARRAY_SIZE(config_M10); | |||
Debug("Sending M10 settings"); | |||
|
|||
// don't mix F9 and M10 | |||
_unconfigured_messages &= ~CONFIG_F9; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can't help but wonder whether a tweak to the code affected by the patch which introduced the problems might be better. In particular:
@@ -334,6 +336,12 @@ AP_GPS_UBLOX::_request_next_config(void)
}
break;
case STEP_POLL_GNSS:
+ if (supports_F9_config()) {
+ if (last_configured_gnss != params.gnss_mode) {
+ _unconfigured_messages |= CONFIG_F9;
+ }
+ break;
+ }
if (!_send_message(CLASS_CFG, MSG_CFG_GNSS, nullptr, 0)) {
_next_message--;
}
Renaming "supports_f9_config" to "supports_valget_and_valset()` might stop this happening again?
@peterbarker do you suggest testing on F10N too? |
we should stop looking for SOL as soon as we know we have PVT, instead of waiting for all others to be cleared
may help with
https://discuss.ardupilot.org/t/fc-tries-to-config-gps-constantly-when-trying-to-arm-in-loiter-mode/129930