mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
ekf2: optical flow failing also reset terrain if needed
This commit is contained in:
parent
ea8f14b883
commit
6be06ecbb3
@ -145,6 +145,10 @@ void Ekf::controlOpticalFlowFusion(const imuSample &imu_delayed)
|
||||
if (is_flow_required) {
|
||||
resetFlowFusion();
|
||||
|
||||
if (_hagl_sensor_status.flags.flow && !isTerrainEstimateValid()) {
|
||||
resetTerrainToFlow();
|
||||
}
|
||||
|
||||
} else {
|
||||
stopFlowFusion();
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user