mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-22 09:43:34 +08:00
commander: increase COM_ARM_MAG_ANG 35 -> 45 degrees
- in practice this is mostly useful for identifying incorrect rotations which we mostly have in 45 degree increments - handling a vehicle on the ground can easily disturb one mag by more than 30 degrees, so this is often distracting noise
This commit is contained in:
@@ -60,7 +60,7 @@ bool PreFlightCheck::magConsistencyCheck(orb_advert_t *mavlink_log_pub, vehicle_
|
||||
|
||||
// Use the difference between sensors to detect a bad calibration, orientation or magnetic interference.
|
||||
// If a single sensor is fitted, the value being checked will be zero so this check will always pass.
|
||||
int32_t angle_difference_limit_deg;
|
||||
int32_t angle_difference_limit_deg = 90;
|
||||
param_get(param_find("COM_ARM_MAG_ANG"), &angle_difference_limit_deg);
|
||||
|
||||
pass = pass || angle_difference_limit_deg < 0; // disabled, pass check
|
||||
|
||||
Reference in New Issue
Block a user