AP_NavEKF3: Reset all co-variances when performing a yaw reset

This commit is contained in:
Paul Riseborough 2020-06-09 20:03:42 +10:00 committed by Peter Barker
parent d8c2096ad8
commit b469a80633

View File

@ -1548,6 +1548,8 @@ void NavEKF3_core::resetQuatStateYawOnly(float yaw, float yawVariance)
// update the yaw angle variance using the variance of the EKF-GSF estimate
angleErrVarVec.z = yawVariance;
zeroRows(P,0,3);
zeroCols(P,0,3);
initialiseQuatCovariances(angleErrVarVec);
// record the yaw reset event