AP_NavEKF: Fix bug preventing use of optical flow without GPS

This commit is contained in:
priseborough 2015-01-03 21:30:23 +11:00 committed by Andrew Tridgell
parent f13248e5f5
commit 2f0b1b3d9c
1 changed files with 1 additions and 1 deletions

View File

@ -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();