Skip to content
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: handle switching for more than 2 gpses #28908

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

sellauth
Copy link

Instead of instantly switching after finding a better GPS, check all GPSes first then switch to ensure there isn't any other better GPS, This will only improve performance on setups with more than 2 GPSes, This commit also changes the behavior of status lock switches, previously they switched without any timeouts, in the new code the 5000ms timeout applies to them as well.

instead of instantly switching after finding a better gps, check all gpses then perform a switch to ensure there isn't any other better gps
@Ryanf55
Copy link
Collaborator

Ryanf55 commented Dec 20, 2024

Nice! Looks reasonable. How'd you test the changes?

@sellauth
Copy link
Author

Nice! Looks reasonable. How'd you test the changes?

I haven't personally tested the changes yet

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants