From 870159c14fe881a000fd90c7ff0daa4d32a90c40 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Wed, 15 Apr 2020 08:54:22 +1000 Subject: [PATCH] AP_Logger: add times-full to MAV log structure --- libraries/AP_Logger/LogStructure.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libraries/AP_Logger/LogStructure.h b/libraries/AP_Logger/LogStructure.h index 09f3b648fb..8f6192fa06 100644 --- a/libraries/AP_Logger/LogStructure.h +++ b/libraries/AP_Logger/LogStructure.h @@ -362,6 +362,7 @@ struct PACKED log_MAV { uint16_t packet_rx_drop_count; uint8_t flags; uint16_t stream_slowdown_ms; + uint16_t times_full; }; struct PACKED log_RSSI { @@ -1662,6 +1663,7 @@ struct PACKED log_Arm_Disarm { // @Field: rxdp: perceived number of packets we never received // @Field: flags: compact representation of some stage of the channel // @Field: ss: stream slowdown is the number of ms being added to each message to fit within bandwidth +// @Field: tf: times buffer was full when a message was going to be sent // @LoggerMessage: MAVC // @Description: MAVLink command we have just executed @@ -2238,7 +2240,7 @@ struct PACKED log_Arm_Disarm { { LOG_RALLY_MSG, sizeof(log_Rally), \ "RALY", "QBBLLh", "TimeUS,Tot,Seq,Lat,Lng,Alt", "s--DUm", "F--GGB" }, \ { LOG_MAV_MSG, sizeof(log_MAV), \ - "MAV", "QBHHHBH", "TimeUS,chan,txp,rxp,rxdp,flags,ss", "s#----s", "F-000-C" }, \ + "MAV", "QBHHHBHH", "TimeUS,chan,txp,rxp,rxdp,flags,ss,tf", "s#----s-", "F-000-C-" }, \ { LOG_VISUALODOM_MSG, sizeof(log_VisualOdom), \ "VISO", "Qffffffff", "TimeUS,dt,AngDX,AngDY,AngDZ,PosDX,PosDY,PosDZ,conf", "ssrrrmmm-", "FF000000-" }, \ { LOG_VISUALPOS_MSG, sizeof(log_VisualPosition), \