mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-07 14:20:35 +08:00
ekf2: clear test ratios, flags, etc when stopping mag fusion
This commit is contained in:
@@ -195,9 +195,6 @@ bool Ekf::fuseMag(const Vector3f &mag, bool update_all_states)
|
||||
}
|
||||
}
|
||||
|
||||
// we are no longer using heading fusion so set the reported test level to zero
|
||||
_yaw_test_ratio = 0.0f;
|
||||
|
||||
// if any axis fails, abort the mag fusion
|
||||
if (!all_innovation_checks_passed) {
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user