add flighttermination circuit breaker

This commit is contained in:
Thomas Gubler 2014-08-14 17:30:05 +02:00
parent 017f82e2b8
commit 9ee6ab366d
2 changed files with 14 additions and 0 deletions

View File

@ -95,6 +95,19 @@ 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_FLIGHTTERMINATION, 0);
bool circuit_breaker_enabled(const char* breaker, int32_t magic)
{
int32_t val;

View File

@ -53,6 +53,7 @@
#define CBRK_RATE_CTRL_KEY 140253
#define CBRK_IO_SAFETY_KEY 22027
#define CBRK_AIRSPD_CHK_KEY 162128
#define CBRK_FLIGHTTERMINATION_KEY 121212
#include <stdbool.h>