aboutsummaryrefslogtreecommitdiff
path: root/apps/px4io/px4io.h
diff options
context:
space:
mode:
authorpx4dev <px4@purgatory.org>2012-11-05 00:55:22 -0800
committerpx4dev <px4@purgatory.org>2012-11-05 00:55:45 -0800
commit39659e57f817c4f49be595d6cecf05e67e2d89db (patch)
treee7e4e1e06c3e075a33f5788ed38d257cfde1bd45 /apps/px4io/px4io.h
parent87fd9fcc067d8115624170ee0f934c1f75e19633 (diff)
downloadpx4-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.h7
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.