mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-02 01:54:08 +08:00
EKF: Remove unnecessary code
_flt_mag_align_start_time is set on initial alignment and will always be >0 before this check can run
This commit is contained in:
parent
43b5e26fe4
commit
f97f0b6ea3
@ -1533,7 +1533,7 @@ void Ekf::controlMagFusion()
|
||||
}
|
||||
|
||||
} else if (_params.mag_fusion_type == MAG_FUSE_TYPE_3D) {
|
||||
if (!_control_status.flags.mag_3D && _control_status.flags.yaw_align && (_flt_mag_align_start_time > 0)) {
|
||||
if (!_control_status.flags.mag_3D && _control_status.flags.yaw_align) {
|
||||
// only commence 3-axis fusion when yaw is aligned and field states set
|
||||
_control_status.flags.mag_3D = true;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user