mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-02 14:08:45 -04:00
AP_NavEKF: Prevent potential repeated use of optical flow data
This commit is contained in:
parent
b0c703e4f7
commit
d0d49065e7
@ -988,6 +988,8 @@ void NavEKF::SelectFlowFusion()
|
||||
FuseOptFlow();
|
||||
// Reset the measurement axis index to prevent further fusion of this data
|
||||
flow_state.obsIndex = 0;
|
||||
// reset flag to indicate that no new flow data is available for fusion
|
||||
newDataFlow = false;
|
||||
// indicate that flow fusion has been performed. This is used for load spreading.
|
||||
flowFusePerformed = true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user