mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-12 00:37:34 +08:00
EKF: Fix on ground yaw drift when using EKF2_MAG_TYPE = 4
This commit is contained in:
committed by
Paul Riseborough
parent
4e946d5bcb
commit
eae6e8f19c
+1
-1
@@ -1582,7 +1582,7 @@ void Ekf::controlMagFusion()
|
||||
save_mag_cov_data();
|
||||
}
|
||||
|
||||
} else if (_params.mag_fusion_type == MAG_FUSE_TYPE_HEADING) {
|
||||
} else if (_params.mag_fusion_type == MAG_FUSE_TYPE_HEADING || _params.mag_fusion_type == MAG_FUSE_TYPE_INDOOR) {
|
||||
// always use heading fusion
|
||||
_control_status.flags.mag_hdg = true;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user