-
Notifications
You must be signed in to change notification settings - Fork 13.7k
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
Commander: add option to re-enable GPS fusion on link loss #24193
base: main
Are you sure you want to change the base?
Conversation
🔎 FLASH Analysispx4_fmu-v5x [Total VM Diff: 320 byte (0.02 %)]
px4_fmu-v6x [Total VM Diff: 296 byte (0.02 %)]
Updated: 2025-01-14T11:03:23 |
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.
- Is this a common workflow? I wouldn't put it in main if it's only used by a hand full of people in the same group during one phase of testing. GPS denied testing seems to be a thing recently so it could be that I don't know but this is useful for a broader audience.
- Ideally we'd not autonomously change a parameter in air. The workflow for toggling GPS fusion in an end-user workflow should probably be using e.g. a MAVLink command or similar.
It doesn't hurt anyone (except the 416 bytes flash) but I'm not sure how many users would want, find and use this feature and that's why I'm hesitant.
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'm not sure I understand the need for this, but at a minimum commander can't use an EKF2 parameter via module params because then it becomes a hard dependency.
It might be less bad if implemented within ekf2.
Thanks both for the feedback. We will not bring this to mainline PX4 for now, and if we do in the future I'll move it over to the EKF module. |
New param: COM_DLL_GPS_CTRL. In case the data link is lost and the GPS fusion parameter (EKF2_GPS_CTRL) is changed while arming, the fusion parameter is reset to the value before arming. Signed-off-by: Silvan <[email protected]>
1313e1e
to
33f1f45
Compare
Solved Problem
In case of GPS spoofing or jamming, or simply for testing purposes, operators can disable the GPS fusion (
EKF2_GPS_CTRL
) to purely rely on other means of navigation. In case of link loss, they have no more way to change system settings, and in some cases it is beneficial if then the system switches back the GPS fusion setting as it was at the moment of takeoff.Solution
New param:
COM_DLL_GPS_CTRL
.In case the data link is lost and the GPS fusion parameter (
EKF2_GPS_CTRL
) is changed while arming, the fusion parameter is reset to the value before arming.Changelog Entry
For release notes:
Test coverage
SITL tested: VTOL:
COM_DLL_GNSS_CTL
to 1EKF2_GPS_CTRL
to 0--> vehicle will RTL and set
EKF2_GPS_CTRL
back to 7