mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-28 05:53:35 +08:00
ekf2: reset mag_lpf (by zeroing _mag_counter) when resetting mag bias (or changing mags)
- so that there's new filtered data avaiable for reset
This commit is contained in:
@@ -915,6 +915,8 @@ void Ekf::resetMagBiasAndYaw()
|
|||||||
}
|
}
|
||||||
|
|
||||||
_control_status.flags.mag_fault = false;
|
_control_status.flags.mag_fault = false;
|
||||||
|
|
||||||
|
_mag_counter = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
// get EKF innovation consistency check status information comprising of:
|
// get EKF innovation consistency check status information comprising of:
|
||||||
|
|||||||
Reference in New Issue
Block a user