diff options
author | Kynos <mail01@delago.net> | 2014-06-30 01:34:12 +0200 |
---|---|---|
committer | Kynos <mail01@delago.net> | 2014-06-30 01:34:12 +0200 |
commit | 503ebddc1b0300f4666b1cd72100a6472709daaf (patch) | |
tree | afa624230cc3726b2527ac3d1f646b3afe66aaa2 /src/drivers/blinkm | |
parent | f1a5be1f57d9a15f29a428e962c3ed7f75777d22 (diff) | |
parent | 28a31708f98eefa4ceb04617f2da3dd7892c99fa (diff) | |
download | px4-firmware-503ebddc1b0300f4666b1cd72100a6472709daaf.tar.gz px4-firmware-503ebddc1b0300f4666b1cd72100a6472709daaf.tar.bz2 px4-firmware-503ebddc1b0300f4666b1cd72100a6472709daaf.zip |
Merged upstream master into gnss_rework branch
Diffstat (limited to 'src/drivers/blinkm')
-rw-r--r-- | src/drivers/blinkm/blinkm.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/drivers/blinkm/blinkm.cpp b/src/drivers/blinkm/blinkm.cpp index 39bf1fcfc..92e089217 100644 --- a/src/drivers/blinkm/blinkm.cpp +++ b/src/drivers/blinkm/blinkm.cpp @@ -649,13 +649,14 @@ BlinkM::led() /* indicate main control state */ if (vehicle_status_raw.main_state == MAIN_STATE_POSCTL) led_color_4 = LED_GREEN; - else if (vehicle_status_raw.main_state == MAIN_STATE_AUTO) + /* TODO: add other Auto modes */ + else if (vehicle_status_raw.main_state == MAIN_STATE_AUTO_MISSION) led_color_4 = LED_BLUE; else if (vehicle_status_raw.main_state == MAIN_STATE_ALTCTL) led_color_4 = LED_YELLOW; else if (vehicle_status_raw.main_state == MAIN_STATE_MANUAL) led_color_4 = LED_WHITE; - else + else led_color_4 = LED_OFF; led_color_5 = led_color_4; } |