mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-31 02:16:53 +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:
@@ -49,7 +49,6 @@ then
|
|||||||
# sensor calibration
|
# sensor calibration
|
||||||
param set CAL_MAG_SIDES 63
|
param set CAL_MAG_SIDES 63
|
||||||
param set SENS_BOARD_ROT 0
|
param set SENS_BOARD_ROT 0
|
||||||
param set COM_ARM_MAG_ANG -1
|
|
||||||
param set COM_ARM_EKF_AB 0.0032
|
param set COM_ARM_EKF_AB 0.0032
|
||||||
|
|
||||||
# circuit breakers
|
# circuit breakers
|
||||||
|
|||||||
@@ -91,8 +91,6 @@ then
|
|||||||
# DSHOT
|
# DSHOT
|
||||||
param set DSHOT_CONFIG 600
|
param set DSHOT_CONFIG 600
|
||||||
|
|
||||||
param set COM_ARM_MAG 0.2
|
|
||||||
|
|
||||||
param set MIS_TAKEOFF_ALT 1.1
|
param set MIS_TAKEOFF_ALT 1.1
|
||||||
|
|
||||||
#####################################
|
#####################################
|
||||||
|
|||||||
@@ -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.
|
// 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.
|
// 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);
|
param_get(param_find("COM_ARM_MAG_ANG"), &angle_difference_limit_deg);
|
||||||
|
|
||||||
pass = pass || angle_difference_limit_deg < 0; // disabled, pass check
|
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
|
* @min 3
|
||||||
* @max 180
|
* @max 180
|
||||||
*/
|
*/
|
||||||
PARAM_DEFINE_INT32(COM_ARM_MAG_ANG, 30);
|
PARAM_DEFINE_INT32(COM_ARM_MAG_ANG, 45);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Enable mag strength preflight check
|
* Enable mag strength preflight check
|
||||||
|
|||||||
Reference in New Issue
Block a user