added an rc switch for arming and disarming with the option to use it as a button

This commit is contained in:
Matthias Grob
2016-12-20 09:46:36 +01:00
committed by Lorenz Meier
parent 537f72073d
commit aa984edd90
8 changed files with 108 additions and 5 deletions
+14
View File
@@ -279,6 +279,20 @@ PARAM_DEFINE_INT32(COM_DISARM_LAND, 0);
*/
PARAM_DEFINE_INT32(COM_ARM_WO_GPS, 1);
/**
* Use arm switch is only a button
*
* The default uses the arm switch as real switch.
* If parameter set button gets handled like stick arming.
*
* @group Commander
* @min 0
* @max 1
* @value 0 Arm switch is a switch that stays on when armed
* @value 1 Arm switch is a button that only triggers arming
*/
PARAM_DEFINE_INT32(COM_ARM_SWISBTN, 0);
/**
* Battery failsafe mode
*