diff options
author | Lorenz Meier <lm@inf.ethz.ch> | 2014-01-26 15:52:51 +0100 |
---|---|---|
committer | Lorenz Meier <lm@inf.ethz.ch> | 2014-01-26 15:52:51 +0100 |
commit | 00a3270dc696e09ad1e8f7b0eec579b92b6c0e2e (patch) | |
tree | 202d21af4ff011b73c24bfdd86c5e600c12ac1b2 /src/modules/px4iofirmware/px4io.h | |
parent | 2a30c574ce569c876dd2b95919a0d86c7c1b1023 (diff) | |
download | px4-firmware-00a3270dc696e09ad1e8f7b0eec579b92b6c0e2e.tar.gz px4-firmware-00a3270dc696e09ad1e8f7b0eec579b92b6c0e2e.tar.bz2 px4-firmware-00a3270dc696e09ad1e8f7b0eec579b92b6c0e2e.zip |
Differentiate between failsafe having kicked in (which stops the normal output mixing based on RC outputs and prevents unwanted control commands due to failsafe) and a true loss of the receiver, where we stop outputting RC channel readings downstream on FMU.
Diffstat (limited to 'src/modules/px4iofirmware/px4io.h')
-rw-r--r-- | src/modules/px4iofirmware/px4io.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/modules/px4iofirmware/px4io.h b/src/modules/px4iofirmware/px4io.h index 39272104d..bb224f388 100644 --- a/src/modules/px4iofirmware/px4io.h +++ b/src/modules/px4iofirmware/px4io.h @@ -116,7 +116,8 @@ extern uint16_t r_page_servo_disarmed[]; /* PX4IO_PAGE_DISARMED_PWM */ */ struct sys_state_s { - volatile uint64_t rc_channels_timestamp; + volatile uint64_t rc_channels_timestamp_received; + volatile uint64_t rc_channels_timestamp_valid; /** * Last FMU receive time, in microseconds since system boot |