mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-31 02:16:53 +08:00
ekf2: optical flow fusion timeout only reset if quality is good
This commit is contained in:
@@ -142,7 +142,7 @@ void Ekf::controlOpticalFlowFusion(const imuSample &imu_delayed)
|
|||||||
|
|
||||||
// handle the case when we have optical flow, are reliant on it, but have not been using it for an extended period
|
// handle the case when we have optical flow, are reliant on it, but have not been using it for an extended period
|
||||||
if (isTimedOut(_aid_src_optical_flow.time_last_fuse, _params.no_aid_timeout_max)) {
|
if (isTimedOut(_aid_src_optical_flow.time_last_fuse, _params.no_aid_timeout_max)) {
|
||||||
if (is_flow_required) {
|
if (is_flow_required && is_quality_good) {
|
||||||
resetFlowFusion();
|
resetFlowFusion();
|
||||||
|
|
||||||
if (_hagl_sensor_status.flags.flow && !isTerrainEstimateValid()) {
|
if (_hagl_sensor_status.flags.flow && !isTerrainEstimateValid()) {
|
||||||
|
|||||||
Reference in New Issue
Block a user