engine failure detection

This commit is contained in:
Thomas Gubler
2014-09-05 08:59:00 +02:00
parent e3cac1999a
commit 973c034d6e
4 changed files with 95 additions and 4 deletions
+14
View File
@@ -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;
+1
View File
@@ -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>