PX4 Firmware
PX4 Autopilot Software http://px4.io
circuit_breaker.h File Reference
#include <stdint.h>
Include dependency graph for circuit_breaker.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define CBRK_SUPPLY_CHK_KEY   894281
 
#define CBRK_RATE_CTRL_KEY   140253
 
#define CBRK_IO_SAFETY_KEY   22027
 
#define CBRK_AIRSPD_CHK_KEY   162128
 
#define CBRK_FLIGHTTERM_KEY   121212
 
#define CBRK_ENGINEFAIL_KEY   284953
 
#define CBRK_GPSFAIL_KEY   240024
 
#define CBRK_USB_CHK_KEY   197848
 
#define CBRK_VELPOSERR_KEY   201607
 

Functions

__BEGIN_DECLS __EXPORT bool circuit_breaker_enabled (const char *breaker, int32_t magic)
 
__EXPORT bool circuit_breaker_enabled_by_val (int32_t breaker_val, int32_t magic)
 

Macro Definition Documentation

◆ CBRK_AIRSPD_CHK_KEY

#define CBRK_AIRSPD_CHK_KEY   162128

Definition at line 55 of file circuit_breaker.h.

Referenced by Commander::get_circuit_breaker_params().

◆ CBRK_ENGINEFAIL_KEY

#define CBRK_ENGINEFAIL_KEY   284953

Definition at line 57 of file circuit_breaker.h.

Referenced by Commander::get_circuit_breaker_params().

◆ CBRK_FLIGHTTERM_KEY

#define CBRK_FLIGHTTERM_KEY   121212

Definition at line 56 of file circuit_breaker.h.

Referenced by Commander::get_circuit_breaker_params(), and PX4IO::task_main().

◆ CBRK_GPSFAIL_KEY

#define CBRK_GPSFAIL_KEY   240024

Definition at line 58 of file circuit_breaker.h.

Referenced by Commander::get_circuit_breaker_params().

◆ CBRK_IO_SAFETY_KEY

#define CBRK_IO_SAFETY_KEY   22027

Definition at line 54 of file circuit_breaker.h.

Referenced by PX4IO::init(), PX4IO::task_main(), and SafetyButton::task_spawn().

◆ CBRK_RATE_CTRL_KEY

#define CBRK_RATE_CTRL_KEY   140253

Definition at line 53 of file circuit_breaker.h.

Referenced by MulticopterRateControl::parameters_updated().

◆ CBRK_SUPPLY_CHK_KEY

#define CBRK_SUPPLY_CHK_KEY   894281

Definition at line 52 of file circuit_breaker.h.

Referenced by Commander::get_circuit_breaker_params().

◆ CBRK_USB_CHK_KEY

#define CBRK_USB_CHK_KEY   197848

Definition at line 59 of file circuit_breaker.h.

Referenced by Commander::get_circuit_breaker_params().

◆ CBRK_VELPOSERR_KEY

#define CBRK_VELPOSERR_KEY   201607

Definition at line 60 of file circuit_breaker.h.

Referenced by Commander::get_circuit_breaker_params().

Function Documentation

◆ circuit_breaker_enabled()

__BEGIN_DECLS __EXPORT bool circuit_breaker_enabled ( const char *  breaker,
int32_t  magic 
)

Definition at line 51 of file circuit_breaker.cpp.

References param_find(), and param_get().

Referenced by PX4IO::init(), ToneAlarm::start_note(), PX4IO::task_main(), and SafetyButton::task_spawn().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ circuit_breaker_enabled_by_val()

__EXPORT bool circuit_breaker_enabled_by_val ( int32_t  breaker_val,
int32_t  magic 
)

Definition at line 58 of file circuit_breaker.cpp.

Referenced by Commander::get_circuit_breaker_params(), and MulticopterRateControl::parameters_updated().

Here is the caller graph for this function: