diff options
author | Lorenz Meier <lm@inf.ethz.ch> | 2013-05-12 13:11:12 +0200 |
---|---|---|
committer | Lorenz Meier <lm@inf.ethz.ch> | 2013-05-12 13:11:12 +0200 |
commit | 0c43da3b6424dbc877c464b6898f18fe650c703f (patch) | |
tree | ebb2749dacaa727d3f38034ccb47cd682a5779ea /src/modules/commander/commander.c | |
parent | 7cf1597cdf2ec64c7c500cc7c7f84f22d38aa18e (diff) | |
download | px4-firmware-0c43da3b6424dbc877c464b6898f18fe650c703f.tar.gz px4-firmware-0c43da3b6424dbc877c464b6898f18fe650c703f.tar.bz2 px4-firmware-0c43da3b6424dbc877c464b6898f18fe650c703f.zip |
Tested with PX4FMU and PX4IO with GPS and arming
Diffstat (limited to 'src/modules/commander/commander.c')
-rw-r--r-- | src/modules/commander/commander.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/modules/commander/commander.c b/src/modules/commander/commander.c index cd2ef8137..aab8f3e04 100644 --- a/src/modules/commander/commander.c +++ b/src/modules/commander/commander.c @@ -1519,7 +1519,7 @@ int commander_thread_main(int argc, char *argv[]) /* GPS lock */ led_on(LED_BLUE); - } else if (counter % (1000000 / COMMANDER_MONITORING_INTERVAL) == 0) { + } else if ((counter + 4) % (1000000 / COMMANDER_MONITORING_INTERVAL) == 0) { /* no GPS lock, but GPS module is aquiring lock */ led_toggle(LED_BLUE); } @@ -1535,8 +1535,8 @@ int commander_thread_main(int argc, char *argv[]) led_toggle(LED_BLUE); } else if (bat_remain < 0.3f && (low_voltage_counter > LOW_VOLTAGE_BATTERY_COUNTER_LIMIT)) { - /* toggle error (red) at 5 Hz on low battery or error */ - led_toggle(LED_BLUE); + /* toggle arming (red) at 5 Hz on low battery or error */ + led_toggle(LED_AMBER); } else { // /* Constant error indication in standby mode without GPS */ |