mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-06-27 11:30:35 +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
|
||||
|
||||
@@ -616,7 +616,7 @@ PARAM_DEFINE_FLOAT(COM_ARM_IMU_GYR, 0.25f);
|
||||
* @min 3
|
||||
* @max 180
|
||||
*/
|
||||
PARAM_DEFINE_INT32(COM_ARM_MAG_ANG, 30);
|
||||
PARAM_DEFINE_INT32(COM_ARM_MAG_ANG, 45);
|
||||
|
||||
/**
|
||||
* Enable mag strength preflight check
|
||||
|
||||
Reference in New Issue
Block a user