mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-02 11:59:17 +08:00
lib/led: add BREATHE mode (but not implemented yet)
This commit is contained in:
+1
-1
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user