forked from Archive/PX4-Autopilot
lib/led: add BREATHE mode (but not implemented yet)
This commit is contained in:
parent
729486f992
commit
8dae94d90a
|
@ -19,7 +19,7 @@ uint8 MODE_DISABLED = 2 # disable this priority (switch to lower priority setti
|
|||
uint8 MODE_BLINK_SLOW = 3
|
||||
uint8 MODE_BLINK_NORMAL = 4
|
||||
uint8 MODE_BLINK_FAST = 5
|
||||
# uint8 MODE_BREATHE = 6 # not implemented (yet)
|
||||
uint8 MODE_BREATHE = 6 # continuously increase & decrease brightness (solid color if driver does not support it)
|
||||
|
||||
uint8 MAX_PRIORITY = 2 # maxium priority (minimum is 0)
|
||||
|
||||
|
|
|
@ -179,6 +179,7 @@ void LedController::get_control_data(LedControlData &control_data)
|
|||
|
||||
switch (cur_data.mode) {
|
||||
case led_control_s::MODE_ON:
|
||||
case led_control_s::MODE_BREATHE: // TODO: handle this properly
|
||||
control_data.leds[i].color = cur_data.color;
|
||||
break;
|
||||
|
||||
|
|
Loading…
Reference in New Issue