mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-02 05:04:08 +08:00
Update src/modules/ekf2/EKF2.cpp
This commit is contained in:
parent
b4ebe43e26
commit
b2d3b6cf4b
@ -2285,7 +2285,6 @@ void EKF2::UpdateMagCalibration(const hrt_abstime ×tamp)
|
||||
{
|
||||
const bool bias_valid = (_param_ekf2_mag_type.get() == static_cast<int32_t>(MagFuseType::AUTO)
|
||||
|| _param_ekf2_mag_type.get() == static_cast<int32_t>(MagFuseType::MAG_3D))
|
||||
&& _ekf.control_status_flags().tilt_align
|
||||
&& _ekf.control_status_flags().yaw_align
|
||||
&& _ekf.control_status_flags().mag_aligned_in_flight
|
||||
&& (_ekf.fault_status().value == 0)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user