From d67e68eb0302da13cff142a271eb5bf34e158ea0 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Fri, 3 May 2019 21:25:08 +1000 Subject: [PATCH] AP_Logger: move LOG_ARM_DISARM_MSG in --- libraries/AP_Logger/LogStructure.h | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/libraries/AP_Logger/LogStructure.h b/libraries/AP_Logger/LogStructure.h index 960db5f8bb..54de203309 100644 --- a/libraries/AP_Logger/LogStructure.h +++ b/libraries/AP_Logger/LogStructure.h @@ -974,8 +974,6 @@ struct PACKED log_Rate { float accel_out; }; -// #if SBP_HW_LOGGING - struct PACKED log_SbpLLH { LOG_PACKET_HEADER; uint64_t time_us; @@ -1121,7 +1119,12 @@ struct PACKED log_DSTL { float D; }; -// #endif // SBP_HW_LOGGING +struct PACKED log_Arm_Disarm { + LOG_PACKET_HEADER; + uint64_t time_us; + uint8_t arm_state; + uint16_t arm_checks; +}; // FMT messages define all message formats other than FMT // UNIT messages define units which can be referenced by FMTU messages @@ -1504,7 +1507,6 @@ Format characters in the format string for binary log messages "ADSB", "QIiiiHHhH", "TimeUS,ICAO_address,Lat,Lng,Alt,Heading,Hor_vel,Ver_vel,Squark", "s-DUmhnn-", "F-GGCBCC-" } -// #if SBP_HW_LOGGING #define LOG_SBP_STRUCTURES \ { LOG_MSG_SBPHEALTH, sizeof(log_SbpHealth), \ "SBPH", "QIII", "TimeUS,CrcError,LastInject,IARhyp", "s---", "F---" }, \ @@ -1516,11 +1518,11 @@ Format characters in the format string for binary log messages "EV", "QB", "TimeUS,Id", "s-", "F-" }, \ { LOG_MSG_SBPEVENT, sizeof(log_SbpEvent), \ "SBRE", "QHIiBB", "TimeUS,GWk,GMS,ns_residual,level,quality", "s?????", "F?????" }, \ + { LOG_ARM_DISARM_MSG, sizeof(log_Arm_Disarm), \ + "ARM", "QBH", "TimeUS,ArmState,ArmChecks", "s--", "F--" }, \ { LOG_ERROR_MSG, sizeof(log_Error), \ "ERR", "QBB", "TimeUS,Subsys,ECode", "s--", "F--" } -// #endif - #define LOG_COMMON_STRUCTURES LOG_BASE_STRUCTURES, LOG_EXTRA_STRUCTURES, LOG_SBP_STRUCTURES // message types 0 to 63 reserved for vehicle specific use @@ -1678,6 +1680,7 @@ enum LogMessages : uint8_t { LOG_MAV_MSG, LOG_ERROR_MSG, LOG_ADSB_MSG, + LOG_ARM_DISARM_MSG, _LOG_LAST_MSG_ };