AP_NavEKF3: Reset all co-variances when performing a yaw reset
This commit is contained in:
parent
d8c2096ad8
commit
b469a80633
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user