diff options
author | Thomas Gubler <thomasgubler@gmail.com> | 2014-09-30 11:20:30 +0200 |
---|---|---|
committer | Thomas Gubler <thomasgubler@gmail.com> | 2014-09-30 11:20:30 +0200 |
commit | d4c0dc2ba0271f4d9c8044fd2a3a178cbb9987e3 (patch) | |
tree | 207df1dee8933351a7c41aac49baf0e2eaeed48f /src/modules/systemlib/circuit_breaker.c | |
parent | 1072a3380c2d6bdea010bb5091c6d0b23fe6f224 (diff) | |
download | px4-firmware-d4c0dc2ba0271f4d9c8044fd2a3a178cbb9987e3.tar.gz px4-firmware-d4c0dc2ba0271f4d9c8044fd2a3a178cbb9987e3.tar.bz2 px4-firmware-d4c0dc2ba0271f4d9c8044fd2a3a178cbb9987e3.zip |
add and activate circuit breaker for gps failure detection
Diffstat (limited to 'src/modules/systemlib/circuit_breaker.c')
-rw-r--r-- | src/modules/systemlib/circuit_breaker.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/modules/systemlib/circuit_breaker.c b/src/modules/systemlib/circuit_breaker.c index 83c8344d5..12187d70e 100644 --- a/src/modules/systemlib/circuit_breaker.c +++ b/src/modules/systemlib/circuit_breaker.c @@ -122,6 +122,20 @@ PARAM_DEFINE_INT32(CBRK_FLIGHTTERM, 121212); */ PARAM_DEFINE_INT32(CBRK_ENGINEFAIL, 284953); +/** + * Circuit breaker for gps failure detection + * + * Setting this parameter to 240024 will disable the gps failure detection. + * If the aircraft is in gps failure mode the gps failure flag will be + * set to healthy + * WARNING: ENABLING THIS CIRCUIT BREAKER IS AT OWN RISK + * + * @min 0 + * @max 240024 + * @group Circuit Breaker + */ +PARAM_DEFINE_INT32(CBRK_GPSFAIL, 240024); + bool circuit_breaker_enabled(const char* breaker, int32_t magic) { int32_t val; |