mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-25 16:03:33 +08:00
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:
committed by
Lorenz Meier
parent
f4df3fb5f2
commit
4fa64f686a
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user