mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-02 05:04:08 +08:00
EKF: fix reporting of optical flow fusion errors
This commit is contained in:
parent
5112ffca90
commit
e35921534d
@ -405,10 +405,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;
|
||||
_innov_check_fail_status.value |= (1 << (obs_index + 9));
|
||||
_innov_check_fail_status.value |= (1 << (obs_index + 10));
|
||||
|
||||
} else {
|
||||
_innov_check_fail_status.value &= ~(1 << (obs_index + 9));
|
||||
_innov_check_fail_status.value &= ~(1 << (obs_index + 10));
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user