diff options
author | Lorenz Meier <lm@inf.ethz.ch> | 2013-05-13 10:15:36 +0200 |
---|---|---|
committer | Lorenz Meier <lm@inf.ethz.ch> | 2013-05-13 10:15:36 +0200 |
commit | 3ac76c4476038b170c319cfccd4a934363e1aca4 (patch) | |
tree | a1b8ca1d17951a960d33eb147ef7a8d28e7944a6 /src/modules/px4iofirmware/safety.c | |
parent | 69571c48c4fa742cfbfe9ce2333fc3d9c1f06034 (diff) | |
download | px4-firmware-3ac76c4476038b170c319cfccd4a934363e1aca4.tar.gz px4-firmware-3ac76c4476038b170c319cfccd4a934363e1aca4.tar.bz2 px4-firmware-3ac76c4476038b170c319cfccd4a934363e1aca4.zip |
Blink pattern fixes
Diffstat (limited to 'src/modules/px4iofirmware/safety.c')
-rw-r--r-- | src/modules/px4iofirmware/safety.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/modules/px4iofirmware/safety.c b/src/modules/px4iofirmware/safety.c index f6cd5fb45..4dbecc274 100644 --- a/src/modules/px4iofirmware/safety.c +++ b/src/modules/px4iofirmware/safety.c @@ -60,6 +60,7 @@ static unsigned counter = 0; #define LED_PATTERN_FMU_OK_TO_ARM 0x0003 /**< slow blinking */ #define LED_PATTERN_FMU_REFUSE_TO_ARM 0x5555 /**< fast blinking */ #define LED_PATTERN_IO_ARMED 0x5050 /**< long off, then double blink */ +#define LED_PATTERN_FMU_ARMED 0x5500 /**< long off, then quad blink */ #define LED_PATTERN_IO_FMU_ARMED 0xffff /**< constantly on */ static unsigned blink_counter = 0; @@ -147,6 +148,8 @@ safety_check_button(void *arg) pattern = LED_PATTERN_IO_ARMED; } + } else if (r_setup_arming & PX4IO_P_SETUP_ARMING_FMU_ARMED) { + pattern = LED_PATTERN_FMU_ARMED; } else if (r_setup_arming & PX4IO_P_SETUP_ARMING_IO_ARM_OK) { pattern = LED_PATTERN_FMU_OK_TO_ARM; |