Remove unnecessary initialiseCovariance

It is already called in reset()
This commit is contained in:
kamilritz
2019-12-17 18:55:51 +01:00
committed by Mathieu Bresciani
parent ef9f1053d0
commit a6bbafc7b0
-2
View File
@@ -202,8 +202,6 @@ bool Ekf::initialiseFilter()
// calculate the initial magnetic field and yaw alignment
_control_status.flags.yaw_align = resetMagHeading(_mag_lpf.getState(), false, false);
// initialise the state covariance matrix
initialiseCovariance();
// update the yaw angle variance using the variance of the measurement
if (_params.mag_fusion_type <= MAG_FUSE_TYPE_3D) {