commander: make auto disarm timeout float

such that fractions of a second are configurable
This commit is contained in:
Matthias Grob
2018-08-30 08:05:13 +02:00
committed by Beat Küng
parent 658b957888
commit 0c6bffb66a
7 changed files with 19 additions and 21 deletions
+5 -6
View File
@@ -278,18 +278,17 @@ PARAM_DEFINE_INT32(COM_RC_ARM_HYST, 1000);
* automatically disarmed in case a landing situation has been detected during this period.
*
* The vehicle will also auto-disarm right after arming if it has not even flown, however the time
* will be longer by a factor of 5.
* will always be 10 seconds such that the pilot has enough time to take off.
*
* A value of zero means that automatic disarming is disabled.
* A negative value means that automatic disarming triggered by landing detection is disabled.
*
* @group Commander
* @min 0
* @min -1
* @max 20
* @unit s
* @decimal 0
* @increment 1
* @decimal 2
*/
PARAM_DEFINE_INT32(COM_DISARM_LAND, 0);
PARAM_DEFINE_FLOAT(COM_DISARM_LAND, -1.0f);
/**
* Allow arming without GPS