Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

Commit

Permalink
EKF: Also fill in lower part of covariance matrix in increaseQuatYawE…
Browse files Browse the repository at this point in the history
…rrVariance()

Signed-off-by: CarlOlsson <[email protected]>
  • Loading branch information
CarlOlsson committed Jan 16, 2019
1 parent 47cf16f commit 3d716c4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions EKF/ekf_helper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1688,4 +1688,10 @@ void Ekf::increaseQuatYawErrVariance(float yaw_variance)
P[1][3] -= yaw_variance*SQ[1]*SQ[3];
P[2][3] -= yaw_variance*SQ[0]*SQ[3];
P[3][3] += yaw_variance*sq(SQ[3]);
P[1][0] += yaw_variance*SQ[1]*SQ[2];
P[2][0] += yaw_variance*SQ[0]*SQ[2];
P[2][1] += yaw_variance*SQ[0]*SQ[1];
P[3][0] -= yaw_variance*SQ[2]*SQ[3];
P[3][1] -= yaw_variance*SQ[1]*SQ[3];
P[3][2] -= yaw_variance*SQ[0]*SQ[3];
}

0 comments on commit 3d716c4

Please sign in to comment.