From 10c9bc3659d2646322975db8bca22220baaf4350 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Thu, 20 Feb 2020 16:13:50 +1100 Subject: [PATCH] AP_Logger: add flags to MAV dataflash log holds various pieces of simple information about a link --- libraries/AP_Logger/LogStructure.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libraries/AP_Logger/LogStructure.h b/libraries/AP_Logger/LogStructure.h index fdc57836f8..861a2dd2c7 100644 --- a/libraries/AP_Logger/LogStructure.h +++ b/libraries/AP_Logger/LogStructure.h @@ -368,6 +368,7 @@ struct PACKED log_MAV { uint16_t packet_tx_count; uint16_t packet_rx_success_count; uint16_t packet_rx_drop_count; + uint8_t flags; }; struct PACKED log_RSSI { @@ -1533,7 +1534,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", "QBHHH", "TimeUS,chan,txp,rxp,rxdp", "s#---", "F-000" }, \ + "MAV", "QBHHHB", "TimeUS,chan,txp,rxp,rxdp,flags", "s#----", "F-000-" }, \ { LOG_VISUALODOM_MSG, sizeof(log_VisualOdom), \ "VISO", "Qffffffff", "TimeUS,dt,AngDX,AngDY,AngDZ,PosDX,PosDY,PosDZ,conf", "ssrrrmmm-", "FF000000-" }, \ { LOG_OPTFLOW_MSG, sizeof(log_Optflow), \