diff options
author | Lorenz Meier <lm@inf.ethz.ch> | 2012-11-30 14:57:54 +0100 |
---|---|---|
committer | Lorenz Meier <lm@inf.ethz.ch> | 2012-11-30 14:57:54 +0100 |
commit | ef4a54666d760a18b18800163a24faf5883c1e61 (patch) | |
tree | c1d5dfdb2faccb69ef7a3d65ccd577ba56bac147 /apps/px4io/px4io.h | |
parent | 31c5425e5006802751ed24ef97e140dea53d3883 (diff) | |
download | px4-firmware-ef4a54666d760a18b18800163a24faf5883c1e61.tar.gz px4-firmware-ef4a54666d760a18b18800163a24faf5883c1e61.tar.bz2 px4-firmware-ef4a54666d760a18b18800163a24faf5883c1e61.zip |
Harmonized PPM, S.BUS and DSM input (order: first preference S.Bus, then DSM, then PPM, first available and valid source is chosen), tested with FMU, valid channel inputs
Diffstat (limited to 'apps/px4io/px4io.h')
-rw-r--r-- | apps/px4io/px4io.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/apps/px4io/px4io.h b/apps/px4io/px4io.h index 2ecab966d..5a26d355a 100644 --- a/apps/px4io/px4io.h +++ b/apps/px4io/px4io.h @@ -72,11 +72,16 @@ struct sys_state_s bool armed; /* IO armed */ bool arm_ok; /* FMU says OK to arm */ + bool ppm_input_ok; /* valid PPM input data */ + bool dsm_input_ok; /* valid Spektrum DSM data */ + bool sbus_input_ok; /* valid Futaba S.Bus data */ + /* * Data from the remote control input(s) */ int rc_channels; uint16_t rc_channel_data[PX4IO_INPUT_CHANNELS]; + uint64_t rc_channels_timestamp; /* * Control signals from FMU. |