Browse Source

AP_NavEKF3: Reset states when falling back into non aiding mode.

zr-v5.1
Paul Riseborough 4 years ago committed by Andrew Tridgell
parent
commit
ddadc45854
  1. 3
      libraries/AP_NavEKF3/AP_NavEKF3_Control.cpp

3
libraries/AP_NavEKF3/AP_NavEKF3_Control.cpp

@ -217,6 +217,9 @@ void NavEKF3_core::setAidingMode() @@ -217,6 +217,9 @@ void NavEKF3_core::setAidingMode()
PV_AidingMode = AID_NONE;
yawAlignComplete = false;
finalInflightYawInit = false;
ResetVelocity(resetDataSource::DEFAULT);
ResetPosition(resetDataSource::DEFAULT);
ResetHeight();
}
// Determine if we should change aiding mode

Loading…
Cancel
Save