diff --git a/libraries/DataFlash/LogStructure.h b/libraries/DataFlash/LogStructure.h index 6dfb0e0864..38f34ceff7 100644 --- a/libraries/DataFlash/LogStructure.h +++ b/libraries/DataFlash/LogStructure.h @@ -814,6 +814,16 @@ struct PACKED log_SbpRAWM { uint8_t data[104]; }; +struct PACKED log_SbpEvent { + LOG_PACKET_HEADER; + uint64_t time_us; + uint16_t wn; + uint32_t tow; + int32_t ns_residual; + uint8_t level; + uint8_t quality; +}; + struct PACKED log_Rally { LOG_PACKET_HEADER; uint64_t time_us; @@ -1134,7 +1144,9 @@ Format characters in the format string for binary log messages { LOG_MSG_SBPRAWH, sizeof(log_SbpRAWH), \ "SBRH", "QQQQQQQQ", "TimeUS,msg_flag,1,2,3,4,5,6" }, \ { LOG_MSG_SBPRAWM, sizeof(log_SbpRAWM), \ - "SBRM", "QQQQQQQQQQQQQQQ", "TimeUS,msg_flag,1,2,3,4,5,6,7,8,9,10,11,12,13" } + "SBRM", "QQQQQQQQQQQQQQQ", "TimeUS,msg_flag,1,2,3,4,5,6,7,8,9,10,11,12,13" }, \ + { LOG_MSG_SBPEVENT, sizeof(log_SbpEvent), \ + "SBRE", "QHIiBB", "TimeUS,GWk,GMS,ns_residual,level,quality" } // #endif #define LOG_COMMON_STRUCTURES LOG_BASE_STRUCTURES, LOG_EXTRA_STRUCTURES, LOG_SBP_STRUCTURES @@ -1251,7 +1263,7 @@ enum LogMessages { LOG_MSG_SBPTRACKING2, LOG_MSG_SBPRAWH, LOG_MSG_SBPRAWM, - LOG_MSG_SBPRAWx, + LOG_MSG_SBPEVENT, LOG_TRIGGER_MSG, LOG_GIMBAL1_MSG,