forked from Archive/PX4-Autopilot
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…
Reference in New Issue