diff options
author | Andrew Tridgell <tridge@samba.org> | 2013-10-30 15:27:48 +1100 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2013-11-30 20:18:27 +1100 |
commit | d0507296c0ce2f3614462a10f7b72d2d9fa5d8f6 (patch) | |
tree | 01ed61711b951fb97b1ee31e890d342f1e0aa5e0 /src/modules/px4iofirmware/safety.c | |
parent | af47a3d795c01efbaabd60d6a15d48337187d35b (diff) | |
download | px4-firmware-d0507296c0ce2f3614462a10f7b72d2d9fa5d8f6.tar.gz px4-firmware-d0507296c0ce2f3614462a10f7b72d2d9fa5d8f6.tar.bz2 px4-firmware-d0507296c0ce2f3614462a10f7b72d2d9fa5d8f6.zip |
px4io: moved blue heartbeat LED to main loop
this allows us to tell if the main loop is running by looking for a
blinking blue LED
Diffstat (limited to 'src/modules/px4iofirmware/safety.c')
-rw-r--r-- | src/modules/px4iofirmware/safety.c | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/src/modules/px4iofirmware/safety.c b/src/modules/px4iofirmware/safety.c index 95335f038..cdb54a80a 100644 --- a/src/modules/px4iofirmware/safety.c +++ b/src/modules/px4iofirmware/safety.c @@ -77,7 +77,6 @@ static unsigned blink_counter = 0; static bool safety_button_pressed; static void safety_check_button(void *arg); -static void heartbeat_blink(void *arg); static void failsafe_blink(void *arg); void @@ -86,9 +85,6 @@ safety_init(void) /* arrange for the button handler to be called at 10Hz */ hrt_call_every(&arming_call, 1000, 100000, safety_check_button, NULL); - /* arrange for the heartbeat handler to be called at 4Hz */ - hrt_call_every(&heartbeat_call, 1000, 250000, heartbeat_blink, NULL); - /* arrange for the failsafe blinker to be called at 8Hz */ hrt_call_every(&failsafe_call, 1000, 125000, failsafe_blink, NULL); } @@ -164,16 +160,6 @@ safety_check_button(void *arg) } static void -heartbeat_blink(void *arg) -{ - static bool heartbeat = false; - - /* XXX add flags here that need to be frobbed by various loops */ - - LED_BLUE(heartbeat = !heartbeat); -} - -static void failsafe_blink(void *arg) { /* indicate that a serious initialisation error occured */ @@ -192,4 +178,4 @@ failsafe_blink(void *arg) } LED_AMBER(failsafe); -}
\ No newline at end of file +} |