Add option to warn the pilot in case of strong magnetic interference but still allow arming.

This PR changes the COM_ARM_MAG_STR parameter to accept values. If the parameter is set to 2, the check is performed and a warning is logged but the vehicle can still arm.
This commit is contained in:
Michael Schaeuble
2021-10-27 09:59:18 +02:00
committed by Mathieu Bresciani
parent 2b6bd452df
commit 5e1f62e9d0
2 changed files with 20 additions and 10 deletions
+5 -2
View File
@@ -620,10 +620,13 @@ PARAM_DEFINE_INT32(COM_ARM_MAG_ANG, 45);
/**
* Enable mag strength preflight check
*
* Deny arming if the estimator detects a strong magnetic
* Check if the estimator detects a strong magnetic
* disturbance (check enabled by EKF2_MAG_CHECK)
*
* @boolean
* @value 0 Disabled
* @value 1 Deny arming
* @value 2 Warning only
*
* @group Commander
*/
PARAM_DEFINE_INT32(COM_ARM_MAG_STR, 1);