aboutsummaryrefslogtreecommitdiff
path: root/src/modules/systemlib/circuit_breaker.c
diff options
context:
space:
mode:
authorThomas Gubler <thomasgubler@gmail.com>2014-10-05 10:55:12 +0200
committerThomas Gubler <thomasgubler@gmail.com>2014-10-05 10:55:12 +0200
commit3cebfd40453cc730c298d27790b9492a64f179e0 (patch)
treed581550c02af9c682ff30a30645121073ae8befd /src/modules/systemlib/circuit_breaker.c
parent70e5d4027a3b1465d5128dbf9a04cbb6545e043d (diff)
parent63b7fac10cf4d43e3df7e692336be869a4c124cc (diff)
downloadpx4-firmware-3cebfd40453cc730c298d27790b9492a64f179e0.tar.gz
px4-firmware-3cebfd40453cc730c298d27790b9492a64f179e0.tar.bz2
px4-firmware-3cebfd40453cc730c298d27790b9492a64f179e0.zip
Merge remote-tracking branch 'upstream/master' into takeoff_fix
Conflicts: src/modules/navigator/mission.cpp
Diffstat (limited to 'src/modules/systemlib/circuit_breaker.c')
-rw-r--r--src/modules/systemlib/circuit_breaker.c41
1 files changed, 41 insertions, 0 deletions
diff --git a/src/modules/systemlib/circuit_breaker.c b/src/modules/systemlib/circuit_breaker.c
index 64317a18a..12187d70e 100644
--- a/src/modules/systemlib/circuit_breaker.c
+++ b/src/modules/systemlib/circuit_breaker.c
@@ -95,6 +95,47 @@ PARAM_DEFINE_INT32(CBRK_IO_SAFETY, 0);
*/
PARAM_DEFINE_INT32(CBRK_AIRSPD_CHK, 0);
+/**
+ * Circuit breaker for flight termination
+ *
+ * Setting this parameter to 121212 will disable the flight termination action.
+ * --> The IO driver will not do flight termination if requested by the FMU
+ * WARNING: ENABLING THIS CIRCUIT BREAKER IS AT OWN RISK
+ *
+ * @min 0
+ * @max 121212
+ * @group Circuit Breaker
+ */
+PARAM_DEFINE_INT32(CBRK_FLIGHTTERM, 121212);
+
+/**
+ * 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, 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;