mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-21 16:18:29 -04:00
AP_NavEKF2: switch to optflow if gps is jammed
This commit is contained in:
parent
455bd86f1a
commit
a54f24c8c0
@ -250,6 +250,9 @@ void NavEKF2_core::setAidingMode()
|
||||
tasTimeout = true;
|
||||
gpsNotAvailable = true;
|
||||
} else if (posAidLossCritical) {
|
||||
if ((frontend->_flowUse == FLOW_USE_NAV) && optFlowDataPresent() && (imuSampleTime_ms - rngValidMeaTime_ms < 500)) {
|
||||
PV_AidingMode = AID_NONE;
|
||||
}
|
||||
// if the loss of position is critical, declare all sources of position aiding as being timed out
|
||||
posTimeout = true;
|
||||
velTimeout = true;
|
||||
|
Loading…
Reference in New Issue
Block a user