AP_NavEKF3: Don't reset to stale GPS data#32940
Merged
Merged
Conversation
andyp1per
approved these changes
Apr 30, 2026
rmackay9
previously requested changes
Apr 30, 2026
rmackay9
left a comment
Contributor
There was a problem hiding this comment.
@priseborough I think we should make the same change a few lines lower for the range beacon and external nav handling shouldn't we?
I've put a commit at the end of this branch that does this, I could push it over your branch if you like
https://github.com/rmackay9/rmackay9-ardupilot/commits/ekf3-reset-stale/
Contributor
Author
|
Thanks @rmackay9 . I've pulled your patch in. |
IamPete1
approved these changes
May 25, 2026
IamPete1
left a comment
Member
There was a problem hiding this comment.
These changes look good. Don't we need the same changes in ResetVelocity?
IamPete1
previously requested changes
May 26, 2026
IamPete1
left a comment
Member
There was a problem hiding this comment.
We decided on the call that we should include the ResetVelocity fix in this PR also.
Contributor
|
I'll make the changes for the similar ResetVelocity method |
This fixes a vulnerability where the last GPS fix, regardless of age, could be be used to reset the EKF position.
9ccc961 to
5f72656
Compare
I've added the fix for reset velocity as well, txs!
rishabh-manna
approved these changes
Jun 8, 2026
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.
This fixes a vulnerability where the last GPS fix, regardless of age, could be be used to reset the EKF position.
Summary
This fixes a bug found during testing of #31738.
The bug report is here #32868
Classification & Testing (check all that apply and add your own)
Description
This is a one lone change that requires the GPS to be no more than 1 sample old( assuming a nominal 5Hz rate with some allowance for jitter) regardless of reset source setting.