Browse Source

AP_NavEKF: Fix bug preventing use of optical flow without GPS

master
priseborough 10 years ago committed by Andrew Tridgell
parent
commit
2f0b1b3d9c
  1. 2
      libraries/AP_NavEKF/AP_NavEKF.cpp

2
libraries/AP_NavEKF/AP_NavEKF.cpp

@ -720,7 +720,7 @@ void NavEKF::UpdateFilter() @@ -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…
Cancel
Save