Skip to content

Commit

Permalink
Remove unnecessary initialiseCovariance
Browse files Browse the repository at this point in the history
It is already called in reset()
  • Loading branch information
kamilritz authored and bresch committed Dec 18, 2019
1 parent ef9f105 commit a6bbafc
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions EKF/ekf.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit a6bbafc

Please sign in to comment.