ekf2: add mag type init

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.
This commit is contained in:
bresch
2024-06-03 13:28:12 +02:00
committed by Mathieu Bresciani
parent ca112fea8a
commit 0a665a526c
4 changed files with 13 additions and 10 deletions
+7 -8
View File
@@ -401,19 +401,18 @@ parameters:
heading or 3-component vector. The fusion of magnetometer data as a three
component vector enables vehicle body fixed hard iron errors to be learned,
but requires a stable earth field. If set to 'Automatic' magnetic heading
fusion is used when on-ground and 3-axis magnetic field fusion in-flight
with fallback to magnetic heading fusion if there is insufficient motion
to make yaw or magnetic field states observable. If set to 'Magnetic heading'
magnetic heading fusion is used at all times. If set to 'None' the magnetometer
will not be used under any circumstance. If no external source of yaw is
available, it is possible to use post-takeoff horizontal movement combined
with GPS velocity measurements to align the yaw angle with the timer required
(depending on the amount of movement and GPS data quality).
fusion is used when on-ground and 3-axis magnetic field fusion in-flight.
If set to 'Magnetic heading' magnetic heading fusion is used at all times.
If set to 'None' the magnetometer will not be used under any circumstance.
If no external source of yaw is available, it is possible to use post-takeoff
horizontal movement combined with GNSS velocity measurements to align the yaw angle.
If set to 'Init' the magnetometer is only used to initalize the heading.
type: enum
values:
0: Automatic
1: Magnetic heading
5: None
6: Init
default: 0
reboot_required: true
EKF2_MAG_ACCLIM: