From 1ef3e4ca977978b340937501a3292a44dbbef6ad Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Thu, 8 Mar 2018 10:13:26 +1100 Subject: [PATCH] DataFlash: make more dataflash message IDs available No vehicle uses anything like 64 messages. Moved all of the EKF messages up as a logical group. --- libraries/DataFlash/LogStructure.h | 60 +++++++++++++++--------------- 1 file changed, 31 insertions(+), 29 deletions(-) diff --git a/libraries/DataFlash/LogStructure.h b/libraries/DataFlash/LogStructure.h index 719fb47a47..e239d1d9f0 100644 --- a/libraries/DataFlash/LogStructure.h +++ b/libraries/DataFlash/LogStructure.h @@ -1412,11 +1412,40 @@ Format characters in the format string for binary log messages #define LOG_COMMON_STRUCTURES LOG_BASE_STRUCTURES, LOG_EXTRA_STRUCTURES, LOG_SBP_STRUCTURES -// message types 0 to 128 reversed for vehicle specific use +// message types 0 to 63 reserved for vehicle specific use // message types for common messages enum LogMessages { - LOG_FORMAT_MSG = 128, + LOG_NKF1_MSG = 64, + LOG_NKF2_MSG, + LOG_NKF3_MSG, + LOG_NKF4_MSG, + LOG_NKF5_MSG, + LOG_NKF6_MSG, + LOG_NKF7_MSG, + LOG_NKF8_MSG, + LOG_NKF9_MSG, + LOG_NKF10_MSG, + LOG_NKQ1_MSG, + LOG_NKQ2_MSG, + LOG_XKF1_MSG, + LOG_XKF2_MSG, + LOG_XKF3_MSG, + LOG_XKF4_MSG, + LOG_XKF5_MSG, + LOG_XKF6_MSG, + LOG_XKF7_MSG, + LOG_XKF8_MSG, + LOG_XKF9_MSG, + LOG_XKF10_MSG, + LOG_XKQ1_MSG, + LOG_XKQ2_MSG, + LOG_XKFD_MSG, + LOG_XKV1_MSG, + LOG_XKV2_MSG, + + LOG_FORMAT_MSG = 128, // this must remain #128 + LOG_PARAMETER_MSG, LOG_GPS_MSG, LOG_GPS2_MSG, @@ -1488,33 +1517,6 @@ enum LogMessages { LOG_GPAB_MSG, LOG_RFND_MSG, LOG_BAR3_MSG, - LOG_NKF1_MSG, - LOG_NKF2_MSG, - LOG_NKF3_MSG, - LOG_NKF4_MSG, - LOG_NKF5_MSG, - LOG_NKF6_MSG, - LOG_NKF7_MSG, - LOG_NKF8_MSG, - LOG_NKF9_MSG, - LOG_NKF10_MSG, - LOG_NKQ1_MSG, - LOG_NKQ2_MSG, - LOG_XKF1_MSG, - LOG_XKF2_MSG, - LOG_XKF3_MSG, - LOG_XKF4_MSG, - LOG_XKF5_MSG, - LOG_XKF6_MSG, - LOG_XKF7_MSG, - LOG_XKF8_MSG, - LOG_XKF9_MSG, - LOG_XKF10_MSG, - LOG_XKQ1_MSG, - LOG_XKQ2_MSG, - LOG_XKFD_MSG, - LOG_XKV1_MSG, - LOG_XKV2_MSG, LOG_DF_MAV_STATS, LOG_FORMAT_UNITS_MSG, LOG_UNIT_MSG,