mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-23 09:08:30 -04:00
AP_NavEKF: Relax timeout check applied to optical flow data
200 msec was too short and could lead to false positives. 5000 msec is the largest time we can go free inertial.
This commit is contained in:
parent
5bd4ee9715
commit
a0a6c0362f
@ -4418,7 +4418,7 @@ bool NavEKF::useRngFinder(void) const
|
||||
// return true if optical flow data is available
|
||||
bool NavEKF::optFlowDataPresent(void) const
|
||||
{
|
||||
if (imuSampleTime_ms - flowMeaTime_ms < 200) {
|
||||
if (imuSampleTime_ms - flowMeaTime_ms < 5000) {
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
|
Loading…
Reference in New Issue
Block a user