mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-15 20:53:34 +08:00
add flighttermination circuit breaker
This commit is contained in:
@@ -95,6 +95,19 @@ PARAM_DEFINE_INT32(CBRK_IO_SAFETY, 0);
|
|||||||
*/
|
*/
|
||||||
PARAM_DEFINE_INT32(CBRK_AIRSPD_CHK, 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)
|
bool circuit_breaker_enabled(const char* breaker, int32_t magic)
|
||||||
{
|
{
|
||||||
int32_t val;
|
int32_t val;
|
||||||
|
|||||||
@@ -53,6 +53,7 @@
|
|||||||
#define CBRK_RATE_CTRL_KEY 140253
|
#define CBRK_RATE_CTRL_KEY 140253
|
||||||
#define CBRK_IO_SAFETY_KEY 22027
|
#define CBRK_IO_SAFETY_KEY 22027
|
||||||
#define CBRK_AIRSPD_CHK_KEY 162128
|
#define CBRK_AIRSPD_CHK_KEY 162128
|
||||||
|
#define CBRK_FLIGHTTERMINATION_KEY 121212
|
||||||
|
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user