mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-17 20:53:35 +08:00
led: add breathe mode
This commit is contained in:
@@ -60,7 +60,7 @@ usage()
|
||||
PX4_INFO(
|
||||
"External Led control for testing. Usage:\n"
|
||||
"led_control test\t\tRun test pattern\n"
|
||||
"led_control {on, off, reset, blink} [-c <color>] [-l <led>] [-n <num_blink>] [-s <speed>] [-p <prio>]\n"
|
||||
"led_control {on, off, reset, blink, breathe} [-c <color>] [-l <led>] [-n <num_blink>] [-s <speed>] [-p <prio>]\n"
|
||||
"\n"
|
||||
"\t-c <color>\t\tColor (red,blue,green,yellow,purple,amber,cyan,white) (default=white)\n"
|
||||
"\t-l <led>\t\tWhich led to control (0,1,...) (default=all)\n"
|
||||
@@ -237,6 +237,9 @@ led_control_main(int argc, char *argv[])
|
||||
} else if (!strcmp(argv[myoptind], "blink")) {
|
||||
led_control.mode = blink_speed;
|
||||
|
||||
} else if (!strcmp(argv[myoptind], "breathe")) {
|
||||
led_control.mode = led_control_s::MODE_BREATHE;
|
||||
|
||||
} else {
|
||||
usage();
|
||||
return 1;
|
||||
|
||||
Reference in New Issue
Block a user