mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-17 16:00:35 +08:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user