mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-13 01:51:37 +08:00
Commander: add delay before executing low battery failsafe action
This commit is contained in:
committed by
Daniel Agar
parent
3af315f2c3
commit
d10f9030ad
@@ -352,6 +352,22 @@ PARAM_DEFINE_INT32(COM_ARM_SWISBTN, 0);
|
||||
*/
|
||||
PARAM_DEFINE_INT32(COM_LOW_BAT_ACT, 0);
|
||||
|
||||
/**
|
||||
* Delay between battery state change and failsafe reaction
|
||||
*
|
||||
* Battery state requires action -> wait COM_BAT_ACT_T seconds for the user to realize and take custom action
|
||||
* React with failsafe action COM_LOW_BAT_ACT
|
||||
*
|
||||
* A zero value disables the delay.
|
||||
*
|
||||
* @group Commander
|
||||
* @unit s
|
||||
* @min 0.0
|
||||
* @max 25.0
|
||||
* @decimal 3
|
||||
*/
|
||||
PARAM_DEFINE_FLOAT(COM_BAT_ACT_T, 10.0f);
|
||||
|
||||
/**
|
||||
* Imbalanced propeller failsafe mode
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user