mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-23 04:53:33 +08:00
ekf2: remove aid src status fusion_enabled flag
This commit is contained in:
@@ -97,7 +97,6 @@ void Ekf::controlMagHeadingFusion(const magSample &mag_sample, const bool common
|
||||
&& isTimedOut(aid_src.time_last_fuse, 3e6);
|
||||
|
||||
if (_control_status.flags.mag_hdg) {
|
||||
aid_src.fusion_enabled = true;
|
||||
aid_src.timestamp_sample = mag_sample.time_us;
|
||||
|
||||
if (continuing_conditions_passing && _control_status.flags.yaw_align) {
|
||||
@@ -185,8 +184,6 @@ void Ekf::controlMagHeadingFusion(const magSample &mag_sample, const bool common
|
||||
}
|
||||
}
|
||||
|
||||
aid_src.fusion_enabled = _control_status.flags.mag_hdg;
|
||||
|
||||
// record corresponding mag heading and yaw state for future mag heading delta heading innovation (logging only)
|
||||
_mag_heading_prev = measured_hdg;
|
||||
_mag_heading_pred_prev = getEulerYaw(_state.quat_nominal);
|
||||
|
||||
Reference in New Issue
Block a user