AP_NavEKF: remove unwanted co-variance reset

The co-variance resets required following a velocity and position state reset is now performed in the stte reset function
This commit is contained in:
Paul Riseborough 2016-05-21 11:30:45 +10:00 committed by Andrew Tridgell
parent 66e4d9d6e8
commit 5ec8d523f6
1 changed files with 1 additions and 2 deletions

View File

@ -143,10 +143,9 @@ void NavEKF2_core::setAidingMode()
// reset the last valid position fix time to prevent unwanted activation of GPS glitch logic // reset the last valid position fix time to prevent unwanted activation of GPS glitch logic
lastPosPassTime_ms = imuSampleTime_ms; lastPosPassTime_ms = imuSampleTime_ms;
} }
// Reset all position, velocity and covariance // Reset the position and velocity
ResetVelocity(); ResetVelocity();
ResetPosition(); ResetPosition();
CovarianceInit();
} }