PX4 Firmware
PX4 Autopilot Software http://px4.io
|
#include <SafetyButton.hpp>
Public Member Functions | |
SafetyButton () | |
virtual | ~SafetyButton () |
int | print_status () override |
void | Run () override |
int | Start () |
Static Public Member Functions | |
static int | task_spawn (int argc, char *argv[]) |
static int | custom_command (int argc, char *argv[]) |
static int | print_usage (const char *reason=nullptr) |
Private Member Functions | |
void | CheckButton () |
void | FlashButton () |
Private Attributes | |
uORB::Subscription | _armed_sub {ORB_ID(actuator_armed)} |
uORB::Publication< safety_s > | _to_safety {ORB_ID(safety)} |
uint8_t | _button_counter {0} |
uint8_t | _blink_counter {0} |
bool | _safety_off {false} |
State of the safety button from the subscribed safety topic. More... | |
bool | _safety_btn_off {false} |
State of the safety button read from the HW button. More... | |
Definition at line 50 of file SafetyButton.hpp.
|
inline |
Definition at line 53 of file SafetyButton.hpp.
References CheckButton(), custom_command(), FlashButton(), print_status(), print_usage(), Run(), Start(), task_spawn(), and ~SafetyButton().
|
virtual |
Definition at line 49 of file SafetyButton.cpp.
Referenced by SafetyButton().
|
private |
Definition at line 55 of file SafetyButton.cpp.
References CYCLE_COUNT, and safety_button_pressed.
Referenced by SafetyButton().
|
static |
Definition at line 197 of file SafetyButton.cpp.
References print_usage().
Referenced by SafetyButton().
|
private |
Definition at line 95 of file SafetyButton.cpp.
References df_bebop_bus_wrapper::_armed_sub, actuator_armed_s::armed, armed, FMU_ARMED, FMU_OK_TO_ARM, FMU_REFUSE_TO_ARM, IO_ARMED, and IO_FMU_ARMED.
Referenced by SafetyButton().
|
override |
Definition at line 203 of file SafetyButton.cpp.
Referenced by SafetyButton().
|
static |
Definition at line 211 of file SafetyButton.cpp.
Referenced by SafetyButton().
|
override |
Definition at line 132 of file SafetyButton.cpp.
References hrt_absolute_time(), safety, safety_s::safety_off, safety_s::safety_switch_available, and safety_s::timestamp.
Referenced by SafetyButton().
int SafetyButton::Start | ( | ) |
Definition at line 189 of file SafetyButton.cpp.
Referenced by SafetyButton(), and task_spawn().
|
static |
Definition at line 154 of file SafetyButton.cpp.
References CBRK_IO_SAFETY_KEY, circuit_breaker_enabled(), ll40ls::instance, and Start().
Referenced by SafetyButton().
|
private |
Definition at line 78 of file SafetyButton.hpp.
|
private |
Definition at line 82 of file SafetyButton.hpp.
|
private |
Definition at line 81 of file SafetyButton.hpp.
|
private |
State of the safety button read from the HW button.
Definition at line 84 of file SafetyButton.hpp.
|
private |
State of the safety button from the subscribed safety topic.
Definition at line 83 of file SafetyButton.hpp.
|
private |
Definition at line 79 of file SafetyButton.hpp.