HealthAndArmingChecks: disallow arming via parameter

COM_ARMABLE is set to "Disabled" will prevent arming.
 This allows to set the parameter when ground demoing a drone or
 if it's in maintenance for safety reasons.
This commit is contained in:
Matthias Grob
2023-06-20 12:14:09 +02:00
parent 173407581b
commit 20d0661e87
5 changed files with 121 additions and 0 deletions
+12
View File
@@ -1104,3 +1104,15 @@ PARAM_DEFINE_FLOAT(COM_WIND_MAX, -1.f);
* @unit m
*/
PARAM_DEFINE_FLOAT(COM_POS_LOW_EPH, -1.0f);
/**
* Flag to allow arming
*
* Set 0 to prevent accidental use of the vehicle e.g. for safety or maintenance reasons.
*
* @boolean
* @value 0 Disallow arming
* @value 1 Allow arming
* @group Commander
*/
PARAM_DEFINE_INT32(COM_ARMABLE, 1);