PX4 Firmware
PX4 Autopilot Software http://px4.io
LedController::PerLedData Struct Reference
Collaboration diagram for LedController::PerLedData:

Public Member Functions

void set (const led_control_s &led_control)
 
void apply_next_state ()
 

Public Attributes

PerPriorityData priority [led_control_s::MAX_PRIORITY+1]
 
uint16_t current_blinking_time = 0
 how long the Led was in current state (in 0.1 ms, wraps if > 6.5s) More...
 
NextState next_state
 

Detailed Description

Definition at line 128 of file led.h.

Member Function Documentation

◆ apply_next_state()

void LedController::PerLedData::apply_next_state ( )
inline

Definition at line 155 of file led.h.

References LedController::PerPriorityData::blink_times_left, LedController::PerPriorityData::color, LedController::NextState::color, LedController::PerPriorityData::mode, LedController::NextState::mode, LedController::NextState::num_blinks, and LedController::NextState::priority.

Referenced by LedController::update().

Here is the caller graph for this function:

◆ set()

void LedController::PerLedData::set ( const led_control_s led_control)
inline

Definition at line 133 of file led.h.

References LedController::PerPriorityData::blink_times_left, led_control_s::color, LedController::PerPriorityData::color, led_control, led_control_s::mode, LedController::PerPriorityData::mode, led_control_s::num_blinks, and led_control_s::priority.

Referenced by LedController::update().

Here is the caller graph for this function:

Member Data Documentation

◆ current_blinking_time

uint16_t LedController::PerLedData::current_blinking_time = 0

how long the Led was in current state (in 0.1 ms, wraps if > 6.5s)

Definition at line 130 of file led.h.

Referenced by LedController::get_control_data(), and LedController::update().

◆ next_state

NextState LedController::PerLedData::next_state

Definition at line 131 of file led.h.

Referenced by LedController::update().

◆ priority

PerPriorityData LedController::PerLedData::priority[led_control_s::MAX_PRIORITY+1]

Definition at line 129 of file led.h.

Referenced by LedController::get_control_data(), and LedController::update().


The documentation for this struct was generated from the following file: