forked from Archive/PX4-Autopilot
EKF: capture magnetometer innovation test failures
This commit is contained in:
parent
3fb449295e
commit
e7690bd8f8
|
@ -183,6 +183,9 @@ void Ekf::fuseMag()
|
||||||
|
|
||||||
if (_mag_test_ratio[index] > 1.0f) {
|
if (_mag_test_ratio[index] > 1.0f) {
|
||||||
_mag_healthy = false;
|
_mag_healthy = false;
|
||||||
|
_sensor_fault_status.value |= (1 << (index + 3));
|
||||||
|
} else {
|
||||||
|
_sensor_fault_status.value &= !(1 << (index + 3));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue