mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-13 18:27:35 +08:00
Remove unnecessary initialiseCovariance
It is already called in reset()
This commit is contained in:
committed by
Mathieu Bresciani
parent
ef9f1053d0
commit
a6bbafc7b0
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user