mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-18 05:43:35 +08:00
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:
@@ -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));
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user