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

ekf2: add mag type init #23185

Merged
merged 1 commit into from
Jun 3, 2024
Merged

ekf2: add mag type init #23185

merged 1 commit into from
Jun 3, 2024

Conversation

bresch
Copy link
Member

@bresch bresch commented May 27, 2024

Solved Problem

I've seen several users that would like to fly without the mag but also being able to takeoff in position/auto mode. This is currently not possible as INS/GNSS heading alignment requires motion.

Solution

Add a new mag type less restrictive than "NONE" that lets run the mag fusion (i.e.: cs_mag) that is only allowed to align yaw and update the mag states. The implementation is as simple as "not being one of the other modes".

Changelog Entry

For release notes:

Add mag type INIT
New parameter: -
Documentation: TBD

Test coverage

SITL tests

@bresch bresch added the EKF2 label May 27, 2024
@bresch bresch requested a review from dagar May 27, 2024 13:28
@bresch bresch self-assigned this May 27, 2024
Base automatically changed from pr-ekf2-mag-decl-rework to main May 31, 2024 14:38
dagar
dagar previously approved these changes May 31, 2024
In this mode, the mag is used to inilialize the heading.
During flight, the heading is predicted using gyros and corrected
by GNSS measurements if available.
@bresch bresch merged commit 0a665a5 into main Jun 3, 2024
93 checks passed
@bresch bresch deleted the pr-ekf2_mag_type_init branch June 3, 2024 11:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: ✅ Done
Development

Successfully merging this pull request may close these issues.

2 participants