mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-15 19:51:37 +08:00
Update src/modules/ekf2/EKF2.cpp
This commit is contained in:
@@ -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)
|
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))
|
|| _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().yaw_align
|
||||||
&& _ekf.control_status_flags().mag_aligned_in_flight
|
&& _ekf.control_status_flags().mag_aligned_in_flight
|
||||||
&& (_ekf.fault_status().value == 0)
|
&& (_ekf.fault_status().value == 0)
|
||||||
|
|||||||
Reference in New Issue
Block a user