mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-21 00:23:34 +08:00
EKF: fix reporting of optical flow fusion errors
This commit is contained in:
committed by
Lorenz Meier
parent
5112ffca90
commit
e35921534d
@@ -405,10 +405,10 @@ void Ekf::fuseOptFlow()
|
|||||||
for (uint8_t obs_index = 0; obs_index <= 1; obs_index++) {
|
for (uint8_t obs_index = 0; obs_index <= 1; obs_index++) {
|
||||||
if (optflow_test_ratio[obs_index] > 1.0f) {
|
if (optflow_test_ratio[obs_index] > 1.0f) {
|
||||||
flow_fail = true;
|
flow_fail = true;
|
||||||
_innov_check_fail_status.value |= (1 << (obs_index + 9));
|
_innov_check_fail_status.value |= (1 << (obs_index + 10));
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
_innov_check_fail_status.value &= ~(1 << (obs_index + 9));
|
_innov_check_fail_status.value &= ~(1 << (obs_index + 10));
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user