mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-02 05:04:08 +08:00
Apply suggestions from code review
This commit is contained in:
parent
ff39b360f7
commit
b4ebe43e26
@ -2290,9 +2290,7 @@ void EKF2::UpdateMagCalibration(const hrt_abstime ×tamp)
|
||||
&& _ekf.control_status_flags().mag_aligned_in_flight
|
||||
&& (_ekf.fault_status().value == 0)
|
||||
&& !_ekf.control_status_flags().mag_fault
|
||||
&& !_ekf.control_status_flags().mag_field_disturbed
|
||||
&& !_ekf.warning_event_flags().stopping_mag_use
|
||||
&& !_ekf.warning_event_flags().emergency_yaw_reset_mag_stopped;
|
||||
&& !_ekf.control_status_flags().mag_field_disturbed;
|
||||
|
||||
const bool learning_valid = bias_valid && _ekf.control_status_flags().mag_3D;
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user