diff options
author | px4dev <px4@purgatory.org> | 2012-11-05 00:55:22 -0800 |
---|---|---|
committer | px4dev <px4@purgatory.org> | 2012-11-05 00:55:45 -0800 |
commit | 39659e57f817c4f49be595d6cecf05e67e2d89db (patch) | |
tree | e7e4e1e06c3e075a33f5788ed38d257cfde1bd45 /apps/px4io/px4io.h | |
parent | 87fd9fcc067d8115624170ee0f934c1f75e19633 (diff) | |
download | px4-firmware-39659e57f817c4f49be595d6cecf05e67e2d89db.tar.gz px4-firmware-39659e57f817c4f49be595d6cecf05e67e2d89db.tar.bz2 px4-firmware-39659e57f817c4f49be595d6cecf05e67e2d89db.zip |
Add prototypical support for Spektrum satellite remotes to PX4IO.
Diffstat (limited to 'apps/px4io/px4io.h')
-rw-r--r-- | apps/px4io/px4io.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/apps/px4io/px4io.h b/apps/px4io/px4io.h index 096b109d6..274b27ff3 100644 --- a/apps/px4io/px4io.h +++ b/apps/px4io/px4io.h @@ -101,6 +101,12 @@ struct sys_state_s * If true, new control data from the FMU has been received. */ bool fmu_data_received; + + /* + * Current serial interface mode, per the serial_rx_mode parameter + * in the config packet. + */ + uint8_t serial_rx_mode; }; extern struct sys_state_s system_state; @@ -141,6 +147,7 @@ extern volatile int timers[TIMER_NUM_TIMERS]; * Mixer */ extern int mixer_init(void); +extern void mixer_set_serial_mode(uint8_t newmode); /* * Safety switch/LED. |