EKF: Fix bug causing incorrect covariance initialisation

The covariance initialisation should not be performed before the quaternion states are initialised.
This commit is contained in:
Paul Riseborough
2020-02-05 15:20:34 +01:00
committed by Lorenz Meier
parent ed260c4f1d
commit 21054a4236
4 changed files with 7 additions and 3 deletions
+2
View File
@@ -46,6 +46,8 @@
#include <math.h>
#include <mathlib/mathlib.h>
// Sets initial values for the covariance matrix
// Do not call before quaternion states have been initialised
void Ekf::initialiseCovariance()
{
P.zero();