mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-28 20:53:37 +08:00
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:
committed by
Lorenz Meier
parent
ed260c4f1d
commit
21054a4236
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user