diff options
author | Julian Oes <julian@oes.ch> | 2014-07-26 17:48:45 +0200 |
---|---|---|
committer | Julian Oes <julian@oes.ch> | 2014-07-26 17:48:45 +0200 |
commit | 54b9698d6560290e386b8dd2a7b9f0b6f4c5f57a (patch) | |
tree | c2b6cb4061b6793d85dd4f6c4d56a5a0f1cfc8c8 /src/modules/systemlib | |
parent | 5bf7d5774c07ed7e9d2e83d623abc7bab6422348 (diff) | |
download | px4-firmware-54b9698d6560290e386b8dd2a7b9f0b6f4c5f57a.tar.gz px4-firmware-54b9698d6560290e386b8dd2a7b9f0b6f4c5f57a.tar.bz2 px4-firmware-54b9698d6560290e386b8dd2a7b9f0b6f4c5f57a.zip |
circuit_breakers: added param to disable airspeed check
Diffstat (limited to 'src/modules/systemlib')
-rw-r--r-- | src/modules/systemlib/circuit_breaker.c | 12 | ||||
-rw-r--r-- | src/modules/systemlib/circuit_breaker.h | 1 |
2 files changed, 13 insertions, 0 deletions
diff --git a/src/modules/systemlib/circuit_breaker.c b/src/modules/systemlib/circuit_breaker.c index 8f697749e..64317a18a 100644 --- a/src/modules/systemlib/circuit_breaker.c +++ b/src/modules/systemlib/circuit_breaker.c @@ -83,6 +83,18 @@ PARAM_DEFINE_INT32(CBRK_RATE_CTRL, 0); */ PARAM_DEFINE_INT32(CBRK_IO_SAFETY, 0); +/** + * Circuit breaker for airspeed sensor + * + * Setting this parameter to 162128 will disable the check for an airspeed sensor. + * WARNING: ENABLING THIS CIRCUIT BREAKER IS AT OWN RISK + * + * @min 0 + * @max 162128 + * @group Circuit Breaker + */ +PARAM_DEFINE_INT32(CBRK_AIRSPD_CHK, 0); + bool circuit_breaker_enabled(const char* breaker, int32_t magic) { int32_t val; diff --git a/src/modules/systemlib/circuit_breaker.h b/src/modules/systemlib/circuit_breaker.h index 1175dbce8..b60584608 100644 --- a/src/modules/systemlib/circuit_breaker.h +++ b/src/modules/systemlib/circuit_breaker.h @@ -52,6 +52,7 @@ #define CBRK_SUPPLY_CHK_KEY 894281 #define CBRK_RATE_CTRL_KEY 140253 #define CBRK_IO_SAFETY_KEY 22027 +#define CBRK_AIRSPD_CHK_KEY 162128 #include <stdbool.h> |