aboutsummaryrefslogtreecommitdiff
path: root/apps/px4io/protocol.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/protocol.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/protocol.h')
-rw-r--r--apps/px4io/protocol.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/apps/px4io/protocol.h b/apps/px4io/protocol.h
index c4a63d886..7467f1adc 100644
--- a/apps/px4io/protocol.h
+++ b/apps/px4io/protocol.h
@@ -62,6 +62,18 @@ struct px4io_command {
bool arm_ok;
};
+/* config message from FMU to IO */
+struct px4io_config {
+ uint16_t f2i_config_magic;
+#define F2I_CONFIG_MAGIC 0x6366
+
+ uint8_t serial_rx_mode;
+#define RX_MODE_PPM_ONLY 0
+#define RX_MODE_SPEKTRUM_6 1
+#define RX_MODE_SPEKTRUM_7 2
+#define RX_MODE_FUTABA_SBUS 3
+};
+
/* report from IO to FMU */
struct px4io_report {
uint16_t i2f_magic;