EKF: capture innovation checks and reset events in separate variables

rename the innovation check status class variable and remove the reset flags from it.
This commit is contained in:
Paul Riseborough
2016-06-01 17:13:00 +10:00
parent 79705da7e6
commit 65da9173b9
8 changed files with 22 additions and 26 deletions
+2 -2
View File
@@ -407,10 +407,10 @@ void Ekf::fuseOptFlow()
for (uint8_t obs_index = 0; obs_index <= 1; obs_index++) {
if (optflow_test_ratio[obs_index] > 1.0f) {
flow_fail = true;
_sensor_fault_status.value |= (1 << (obs_index + 9));
_innov_check_fail_status.value |= (1 << (obs_index + 9));
} else {
_sensor_fault_status.value &= ~(1 << (obs_index + 9));
_innov_check_fail_status.value &= ~(1 << (obs_index + 9));
}
}