aboutsummaryrefslogtreecommitdiff
path: root/apps/px4io/px4io.c
diff options
context:
space:
mode:
authorpx4dev <px4@purgatory.org>2012-11-05 00:55:22 -0800
committerpx4dev <px4@purgatory.org>2012-11-05 00:55:45 -0800
commit39659e57f817c4f49be595d6cecf05e67e2d89db (patch)
treee7e4e1e06c3e075a33f5788ed38d257cfde1bd45 /apps/px4io/px4io.c
parent87fd9fcc067d8115624170ee0f934c1f75e19633 (diff)
downloadpx4-firmware-39659e57f817c4f49be595d6cecf05e67e2d89db.tar.gz
px4-firmware-39659e57f817c4f49be595d6cecf05e67e2d89db.tar.bz2
px4-firmware-39659e57f817c4f49be595d6cecf05e67e2d89db.zip
Add prototypical support for Spektrum satellite remotes to PX4IO.
Diffstat (limited to 'apps/px4io/px4io.c')
-rw-r--r--apps/px4io/px4io.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/apps/px4io/px4io.c b/apps/px4io/px4io.c
index dc8e227fc..7039e5d58 100644
--- a/apps/px4io/px4io.c
+++ b/apps/px4io/px4io.c
@@ -102,7 +102,7 @@ int user_start(int argc, char *argv[])
safety_init();
/* set up some timers for the main loop */
- timers[TIMER_BLINK_AMBER] = 250; /* heartbeat blink @ 2Hz */
+ timers[TIMER_BLINK_BLUE] = 250; /* heartbeat blink @ 2Hz */
timers[TIMER_STATUS_PRINT] = 1000; /* print status message @ 1Hz */
/*
@@ -114,21 +114,21 @@ int user_start(int argc, char *argv[])
comms_check();
/* blink the heartbeat LED */
- if (timers[TIMER_BLINK_AMBER] == 0) {
- timers[TIMER_BLINK_AMBER] = 250;
- LED_AMBER(heartbeat = !heartbeat);
+ if (timers[TIMER_BLINK_BLUE] == 0) {
+ timers[TIMER_BLINK_BLUE] = 250;
+ LED_BLUE(heartbeat = !heartbeat);
}
/* blink the failsafe LED if we don't have FMU input */
if (!system_state.mixer_use_fmu) {
- if (timers[TIMER_BLINK_BLUE] == 0) {
- timers[TIMER_BLINK_BLUE] = 125;
+ if (timers[TIMER_BLINK_AMBER] == 0) {
+ timers[TIMER_BLINK_AMBER] = 125;
failsafe = !failsafe;
}
} else {
failsafe = false;
}
- LED_BLUE(failsafe);
+ LED_AMBER(failsafe);
/* print some simple status */
if (timers[TIMER_STATUS_PRINT] == 0) {