systemlib: Add circuit breaker parameter for position error checks

This commit is contained in:
priseborough 2017-03-08 10:59:19 +11:00 committed by Lorenz Meier
parent e61e733d1d
commit 519e903347
2 changed files with 15 additions and 0 deletions

View File

@ -57,6 +57,7 @@
#define CBRK_ENGINEFAIL_KEY 284953
#define CBRK_GPSFAIL_KEY 240024
#define CBRK_USB_CHK_KEY 197848
#define CBRK_VELPOSERR_KEY 201607
#include <stdbool.h>

View File

@ -169,3 +169,17 @@ PARAM_DEFINE_INT32(CBRK_BUZZER, 0);
* @group Circuit Breaker
*/
PARAM_DEFINE_INT32(CBRK_USB_CHK, 0);
/**
* Circuit breaker for position error check
*
* Setting this parameter to 201607 will disable the position and velocity
* accuracy checks in the commander.
* WARNING: ENABLING THIS CIRCUIT BREAKER IS AT OWN RISK
*
* @reboot_required true
* @min 0
* @max 201607
* @group Circuit Breaker
*/
PARAM_DEFINE_INT32(CBRK_VELPOSERR, 0);