Skip to content

Commit

Permalink
AP_NavEKF2: Enable entry into relative position mode on start-up
Browse files Browse the repository at this point in the history
  • Loading branch information
priseborough committed Oct 5, 2016
1 parent 596db2d commit 775a12a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/AP_NavEKF2/AP_NavEKF2_Control.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ void NavEKF2_core::setAidingMode()
// GPS aiding is the perferred option unless excluded by the user
if((frontend->_fusionModeGPS) != 3 && readyToUseGPS() && filterIsStable && !gpsInhibit) {
PV_AidingMode = AID_ABSOLUTE;
} else if ((frontend->_fusionModeGPS == 3) && optFlowDataPresent()) {
} else if (optFlowDataPresent() && filterIsStable) {
PV_AidingMode = AID_RELATIVE;
}
} else if (PV_AidingMode == AID_RELATIVE) {
Expand Down

0 comments on commit 775a12a

Please sign in to comment.