PX4 Firmware
PX4 Autopilot Software http://px4.io
SafetyButton.cpp File Reference
#include "SafetyButton.hpp"
Include dependency graph for SafetyButton.cpp:

Go to the source code of this file.

Enumerations

enum  LED_PATTERN : uint16_t {
  LED_PATTERN::FMU_OK_TO_ARM = 0x0003, LED_PATTERN::FMU_REFUSE_TO_ARM = 0x5555, LED_PATTERN::IO_ARMED = 0x5050, LED_PATTERN::FMU_ARMED = 0x5500,
  LED_PATTERN::IO_FMU_ARMED = 0xffff
}
 

Functions

__EXPORT int safety_button_main (int argc, char *argv[])
 

Variables

static constexpr uint8_t CYCLE_COUNT {10}
 

Enumeration Type Documentation

◆ LED_PATTERN

enum LED_PATTERN : uint16_t
strong
Enumerator
FMU_OK_TO_ARM 

slow blinking

FMU_REFUSE_TO_ARM 

fast blinking

IO_ARMED 

long off, then double blink

FMU_ARMED 

long off, then quad blink

IO_FMU_ARMED 

constantly on

Definition at line 41 of file SafetyButton.cpp.

Function Documentation

◆ safety_button_main()

__EXPORT int safety_button_main ( int  argc,
char *  argv[] 
)

Definition at line 230 of file SafetyButton.cpp.

References main().

Here is the call graph for this function:

Variable Documentation

◆ CYCLE_COUNT

constexpr uint8_t CYCLE_COUNT {10}
static

Definition at line 38 of file SafetyButton.cpp.

Referenced by SafetyButton::CheckButton().