mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-21 21:50: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
|
// calculate the initial magnetic field and yaw alignment
|
||||||
_control_status.flags.yaw_align = resetMagHeading(_mag_lpf.getState(), false, false);
|
_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
|
// update the yaw angle variance using the variance of the measurement
|
||||||
if (_params.mag_fusion_type <= MAG_FUSE_TYPE_3D) {
|
if (_params.mag_fusion_type <= MAG_FUSE_TYPE_3D) {
|
||||||
|
|||||||
Reference in New Issue
Block a user