Skip to content

Commit 0c43da3

Browse files
committed
Tested with PX4FMU and PX4IO with GPS and arming
1 parent 7cf1597 commit 0c43da3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/modules/commander/commander.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1519,7 +1519,7 @@ int commander_thread_main(int argc, char *argv[])
15191519
/* GPS lock */
15201520
led_on(LED_BLUE);
15211521

1522-
} else if (counter % (1000000 / COMMANDER_MONITORING_INTERVAL) == 0) {
1522+
} else if ((counter + 4) % (1000000 / COMMANDER_MONITORING_INTERVAL) == 0) {
15231523
/* no GPS lock, but GPS module is aquiring lock */
15241524
led_toggle(LED_BLUE);
15251525
}
@@ -1535,8 +1535,8 @@ int commander_thread_main(int argc, char *argv[])
15351535
led_toggle(LED_BLUE);
15361536

15371537
} else if (bat_remain < 0.3f && (low_voltage_counter > LOW_VOLTAGE_BATTERY_COUNTER_LIMIT)) {
1538-
/* toggle error (red) at 5 Hz on low battery or error */
1539-
led_toggle(LED_BLUE);
1538+
/* toggle arming (red) at 5 Hz on low battery or error */
1539+
led_toggle(LED_AMBER);
15401540

15411541
} else {
15421542
// /* Constant error indication in standby mode without GPS */

0 commit comments

Comments
 (0)