mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-22 22:03:34 +08:00
EKF: clean up reset of fusion flags
This commit is contained in:
@@ -1358,7 +1358,6 @@ void Ekf::controlVelPosFusion()
|
||||
// Fuse available NED velocity and position data into the main filter
|
||||
if (_fuse_height || _fuse_pos || _fuse_hor_vel || _fuse_vert_vel) {
|
||||
fuseVelPosHeight();
|
||||
_fuse_hor_vel = _fuse_vert_vel = _fuse_pos = _fuse_height = false;
|
||||
|
||||
}
|
||||
}
|
||||
@@ -1376,6 +1375,5 @@ void Ekf::controlAuxVelFusion()
|
||||
_velObsVarNE = _auxvel_sample_delayed.velVarNE;
|
||||
_hvelInnovGate = _params.auxvel_gate;
|
||||
fuseVelPosHeight();
|
||||
_fuse_hor_vel = _fuse_vert_vel = _fuse_pos = _fuse_height = false;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user