aboutsummaryrefslogtreecommitdiff
path: root/src/modules/px4iofirmware/protocol.h
diff options
context:
space:
mode:
authorLorenz Meier <lm@inf.ethz.ch>2013-06-12 12:58:17 +0200
committerLorenz Meier <lm@inf.ethz.ch>2013-06-12 12:58:17 +0200
commitc3a8f177b6316a9cefd814e312742f47d3049739 (patch)
treec619c677676bc1bbe4bc55037cd376c42592e08f /src/modules/px4iofirmware/protocol.h
parenteb76d116cc67c6354c29fa41e49b4cf9df1a472d (diff)
downloadpx4-firmware-c3a8f177b6316a9cefd814e312742f47d3049739.tar.gz
px4-firmware-c3a8f177b6316a9cefd814e312742f47d3049739.tar.bz2
px4-firmware-c3a8f177b6316a9cefd814e312742f47d3049739.zip
Software version check fixes
Diffstat (limited to 'src/modules/px4iofirmware/protocol.h')
-rw-r--r--src/modules/px4iofirmware/protocol.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/modules/px4iofirmware/protocol.h b/src/modules/px4iofirmware/protocol.h
index 497e6af8e..6c6c7b4e2 100644
--- a/src/modules/px4iofirmware/protocol.h
+++ b/src/modules/px4iofirmware/protocol.h
@@ -75,10 +75,13 @@
#define REG_TO_FLOAT(_reg) ((float)REG_TO_SIGNED(_reg) / 10000.0f)
#define FLOAT_TO_REG(_float) SIGNED_TO_REG((int16_t)((_float) * 10000.0f))
+#define PX4IO_P_CONFIG_PROTOCOL_VERSION_MAGIC 2
+#define PX4IO_P_CONFIG_SOFTWARE_VERSION_MAGIC 2
+
/* static configuration page */
#define PX4IO_PAGE_CONFIG 0
-#define PX4IO_P_CONFIG_PROTOCOL_VERSION 2 /* magic numbers TBD */
-#define PX4IO_P_CONFIG_SOFTWARE_VERSION 1 /* magic numbers TBD */
+#define PX4IO_P_CONFIG_PROTOCOL_VERSION 0 /* magic numbers */
+#define PX4IO_P_CONFIG_SOFTWARE_VERSION 1 /* magic numbers */
#define PX4IO_P_CONFIG_BOOTLOADER_VERSION 2 /* get this how? */
#define PX4IO_P_CONFIG_MAX_TRANSFER 3 /* maximum I2C transfer size */
#define PX4IO_P_CONFIG_CONTROL_COUNT 4 /* hardcoded max control count supported */