mirror of https://github.com/ArduPilot/ardupilot
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:
parent
66e4d9d6e8
commit
5ec8d523f6
|
@ -143,10 +143,9 @@ void NavEKF2_core::setAidingMode()
|
|||
// reset the last valid position fix time to prevent unwanted activation of GPS glitch logic
|
||||
lastPosPassTime_ms = imuSampleTime_ms;
|
||||
}
|
||||
// Reset all position, velocity and covariance
|
||||
// Reset the position and velocity
|
||||
ResetVelocity();
|
||||
ResetPosition();
|
||||
CovarianceInit();
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue