PX4 Firmware
PX4 Autopilot Software http://px4.io
circuit_breaker.cpp File Reference
#include "circuit_breaker.h"
#include <stdint.h>
#include <px4_platform_common/defines.h>
#include <lib/parameters/param.h>
Include dependency graph for circuit_breaker.cpp:

Go to the source code of this file.

Functions

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

Function Documentation

◆ circuit_breaker_enabled()

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()

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: