mirror of https://github.com/ArduPilot/ardupilot
AP_NavEKF: Fix bug preventing use of optical flow without GPS
This commit is contained in:
parent
f13248e5f5
commit
2f0b1b3d9c
|
@ -720,7 +720,7 @@ void NavEKF::UpdateFilter()
|
|||
void NavEKF::SelectVelPosFusion()
|
||||
{
|
||||
// check for new data, specify which measurements should be used and check data for freshness
|
||||
if (!constPosMode && !constVelMode) {
|
||||
if (PV_AidingMode == AID_ABSOLUTE) {
|
||||
|
||||
// check for and read new GPS data
|
||||
readGpsData();
|
||||
|
|
Loading…
Reference in New Issue