mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-12 19:40:34 +08:00
ekf2: allow filter init with only IMU (#21041)
- if mag enabled heading init is now pushed to controlMagFusion()
This commit is contained in:
@@ -49,7 +49,7 @@ void Ekf::controlZeroInnovationHeadingUpdate()
|
||||
float obs_var = _control_status.flags.vehicle_at_rest ? 0.001f : 0.1f;
|
||||
estimator_aid_source1d_s unused;
|
||||
fuseYaw(innovation, obs_var, unused);
|
||||
|
||||
_time_last_heading_fuse = 0;
|
||||
_last_static_yaw = NAN;
|
||||
|
||||
} else if (_control_status.flags.vehicle_at_rest) {
|
||||
|
||||
Reference in New Issue
Block a user