pre arm check: add circuit breaker for the VTOL arming in fixed-wing mode prevention

Added a new circuit breaker that, if set, enables arming in fixed-wing mode for VTOLs.

Signed-off-by: Silvan Fuhrer <silvan@auterion.com>
This commit is contained in:
Silvan Fuhrer
2020-01-28 00:30:24 +01:00
committed by Lorenz Meier
parent f4df3fb5f2
commit 4fa64f686a
6 changed files with 22 additions and 1 deletions
@@ -57,6 +57,7 @@
#define CBRK_ENGINEFAIL_KEY 284953
#define CBRK_USB_CHK_KEY 197848
#define CBRK_VELPOSERR_KEY 201607
#define CBRK_VTOLARMING_KEY 159753
#include <stdint.h>
@@ -176,3 +176,18 @@ PARAM_DEFINE_INT32(CBRK_USB_CHK, 0);
* @group Circuit Breaker
*/
PARAM_DEFINE_INT32(CBRK_VELPOSERR, 0);
/**
* Circuit breaker for arming in fixed-wing mode check
*
* Setting this parameter to 159753 will enable arming in fixed-wing
* mode for VTOLs.
* WARNING: ENABLING THIS CIRCUIT BREAKER IS AT OWN RISK
*
* @reboot_required true
* @min 0
* @max 159753
* @category Developer
* @group Circuit Breaker
*/
PARAM_DEFINE_INT32(CBRK_VTOLARMING, 0);