diff options
author | px4dev <px4@purgatory.org> | 2013-01-14 01:11:29 -0800 |
---|---|---|
committer | px4dev <px4@purgatory.org> | 2013-01-14 01:11:29 -0800 |
commit | 5c60ed9a9457e3ab0c51584e7e0db59bdbe4fd87 (patch) | |
tree | cc3582793d06504470412e076708ef914e50ff8a /apps/px4io/registers.c | |
parent | 06b66ad065f096060bfdd2e1f18cdc6704c70d2c (diff) | |
download | px4-firmware-5c60ed9a9457e3ab0c51584e7e0db59bdbe4fd87.tar.gz px4-firmware-5c60ed9a9457e3ab0c51584e7e0db59bdbe4fd87.tar.bz2 px4-firmware-5c60ed9a9457e3ab0c51584e7e0db59bdbe4fd87.zip |
Fix up FMU input timeout handling.
Fix the FMU auto OK LED status.
Strip out unused fields from the system state structure.
Diffstat (limited to 'apps/px4io/registers.c')
-rw-r--r-- | apps/px4io/registers.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/apps/px4io/registers.c b/apps/px4io/registers.c index 59684f1ee..0dd8fe28d 100644 --- a/apps/px4io/registers.c +++ b/apps/px4io/registers.c @@ -42,6 +42,8 @@ #include <stdbool.h> #include <stdlib.h> +#include <drivers/drv_hrt.h> + #include "px4io.h" #include "protocol.h" @@ -140,6 +142,8 @@ uint16_t r_page_rc_input_config[MAX_CONTROL_CHANNELS * PX4IO_P_RC_CONFIG_STRIDE void registers_set(uint8_t page, uint8_t offset, const uint16_t *values, unsigned num_values) { + system_state.fmu_data_received_time = hrt_absolute_time(); + switch (page) { /* handle bulk controls input */ @@ -157,6 +161,7 @@ registers_set(uint8_t page, uint8_t offset, const uint16_t *values, unsigned num } /* XXX we should cause a mixer tick ASAP */ + system_state.fmu_data_received_time = hrt_absolute_time(); r_status_flags |= PX4IO_P_STATUS_FLAGS_FMU_OK; break; |