diff options
author | Thomas Gubler <thomasgubler@gmail.com> | 2014-09-05 08:59:00 +0200 |
---|---|---|
committer | Thomas Gubler <thomasgubler@gmail.com> | 2014-09-22 10:52:48 +0200 |
commit | 973c034d6ec502009a8fd92c14ef02c4d1769a64 (patch) | |
tree | 501ce65e6f98fe772ad229c0c76dd50f0758a0b4 /src/modules/systemlib | |
parent | e3cac1999a0b4398e669f90cd28279ec2a0784a7 (diff) | |
download | px4-firmware-973c034d6ec502009a8fd92c14ef02c4d1769a64.tar.gz px4-firmware-973c034d6ec502009a8fd92c14ef02c4d1769a64.tar.bz2 px4-firmware-973c034d6ec502009a8fd92c14ef02c4d1769a64.zip |
engine failure detection
Diffstat (limited to 'src/modules/systemlib')
-rw-r--r-- | src/modules/systemlib/circuit_breaker.c | 14 | ||||
-rw-r--r-- | src/modules/systemlib/circuit_breaker.h | 1 |
2 files changed, 15 insertions, 0 deletions
diff --git a/src/modules/systemlib/circuit_breaker.c b/src/modules/systemlib/circuit_breaker.c index b0f95aedf..9e5429988 100644 --- a/src/modules/systemlib/circuit_breaker.c +++ b/src/modules/systemlib/circuit_breaker.c @@ -108,6 +108,20 @@ PARAM_DEFINE_INT32(CBRK_AIRSPD_CHK, 0); */ PARAM_DEFINE_INT32(CBRK_FLIGHTTERM, 0); +/** + * Circuit breaker for engine failure detection + * + * Setting this parameter to 284953 will disable the engine failure detection. + * If the aircraft is in engine failure mode the enine failure flag will be + * set to healthy + * WARNING: ENABLING THIS CIRCUIT BREAKER IS AT OWN RISK + * + * @min 0 + * @max 284953 + * @group Circuit Breaker + */ +PARAM_DEFINE_INT32(CBRK_ENGINEFAIL, 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 445a89d3a..6a55e4948 100644 --- a/src/modules/systemlib/circuit_breaker.h +++ b/src/modules/systemlib/circuit_breaker.h @@ -54,6 +54,7 @@ #define CBRK_IO_SAFETY_KEY 22027 #define CBRK_AIRSPD_CHK_KEY 162128 #define CBRK_FLIGHTTERM_KEY 121212 +#define CBRK_ENGINEFAIL_KEY 284953 #include <stdbool.h> |