aboutsummaryrefslogtreecommitdiff
path: root/src/modules/px4iofirmware/protocol.h
diff options
context:
space:
mode:
authorpx4dev <px4@purgatory.org>2013-07-14 13:04:44 -0700
committerpx4dev <px4@purgatory.org>2013-07-14 13:04:44 -0700
commitdca9019f75ddf31a5477db935252eb009a0be655 (patch)
tree6fd0661f9e2c7035097bf2b044b33e95ae352caf /src/modules/px4iofirmware/protocol.h
parent6cf120831289368015b7b4f51db4f99f418e7129 (diff)
parent60ce9759d9d5a9b5f2e9fd218852fa595cc7bebd (diff)
downloadpx4-firmware-dca9019f75ddf31a5477db935252eb009a0be655.tar.gz
px4-firmware-dca9019f75ddf31a5477db935252eb009a0be655.tar.bz2
px4-firmware-dca9019f75ddf31a5477db935252eb009a0be655.zip
Merge branch 'master' of https://github.com/PX4/Firmware into fmuv2_bringup
Diffstat (limited to 'src/modules/px4iofirmware/protocol.h')
-rw-r--r--src/modules/px4iofirmware/protocol.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/modules/px4iofirmware/protocol.h b/src/modules/px4iofirmware/protocol.h
index fa57dfc3f..dc5c40638 100644
--- a/src/modules/px4iofirmware/protocol.h
+++ b/src/modules/px4iofirmware/protocol.h
@@ -106,6 +106,7 @@
#define PX4IO_P_STATUS_FLAGS_ARM_SYNC (1 << 9) /* the arming state between IO and FMU is in sync */
#define PX4IO_P_STATUS_FLAGS_INIT_OK (1 << 10) /* initialisation of the IO completed without error */
#define PX4IO_P_STATUS_FLAGS_FAILSAFE (1 << 11) /* failsafe is active */
+#define PX4IO_P_STATUS_FLAGS_RC_DSM11 (1 << 12) /* DSM input is 11 bit data */
#define PX4IO_P_STATUS_ALARMS 3 /* alarm flags - alarms latch, write 1 to a bit to clear it */
#define PX4IO_P_STATUS_ALARMS_VBATT_LOW (1 << 0) /* [1] VBatt is very close to regulator dropout */
@@ -169,7 +170,14 @@
#define PX4IO_P_SETUP_VBATT_SCALE 6 /* [1] battery voltage correction factor (float) */
#define PX4IO_P_SETUP_VSERVO_SCALE 6 /* [2] servo voltage correction factor (float) */
- /* 7 */
+#define PX4IO_P_SETUP_DSM 7 /* DSM bind state */
+enum { /* DSM bind states */
+ dsm_bind_power_down = 0,
+ dsm_bind_power_up,
+ dsm_bind_set_rx_out,
+ dsm_bind_send_pulses,
+ dsm_bind_reinit_uart
+};
/* 8 */
#define PX4IO_P_SETUP_SET_DEBUG 9 /* debug level for IO board */