AP_GPS: fixed the check for disabling CONFIG_RATE_SOL config - #29320
Merged
Conversation
andyp1per
approved these changes
Feb 18, 2025
tridge
force-pushed
the
pr-fix-M10-GPS-config
branch
from
February 19, 2025 09:21
e6b7865 to
6ade8a5
Compare
Contributor
|
I bisected the bug, this was the result: |
Contributor
|
@peterbarker looks right but will need testing on F9P if you did not do that already |
peterbarker
reviewed
Feb 19, 2025
| Debug("Sending M10 settings"); | ||
|
|
||
| // don't mix F9 and M10 | ||
| _unconfigured_messages &= ~CONFIG_F9; |
Contributor
There was a problem hiding this comment.
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?
Contributor
|
@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
tridge
force-pushed
the
pr-fix-M10-GPS-config
branch
from
February 24, 2025 04:13
6ade8a5 to
b5ae8b6
Compare
if we get an unexpected VALSET NACK we could dereference NULL. This could happen if we reboot while configuring an invalid key
Contributor
Author
|
@andyp1per I have tested GPS1_GNSS_MODE with F9P and it still works fine |
Contributor
|
Unrelated to this PR, but it looks like we leak |
peterbarker
approved these changes
Feb 25, 2025
Contributor
|
This has also have fixed a problem I was seeing with the QioTek M10S GPS. |
Contributor
|
this is included in 4.6.0-beta5 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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