From 5c871690c8158303224b4c1defb0f6e746ed0cee Mon Sep 17 00:00:00 2001 From: Iampete1 Date: Fri, 27 Oct 2023 00:03:46 +0100 Subject: [PATCH] AP_Logger: log rally point flags field --- libraries/AP_Logger/AP_Logger_Backend.cpp | 3 ++- libraries/AP_Logger/LogStructure.h | 4 +++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/libraries/AP_Logger/AP_Logger_Backend.cpp b/libraries/AP_Logger/AP_Logger_Backend.cpp index f432328a160490..57f8792bdb2010 100644 --- a/libraries/AP_Logger/AP_Logger_Backend.cpp +++ b/libraries/AP_Logger/AP_Logger_Backend.cpp @@ -519,7 +519,8 @@ bool AP_Logger_Backend::Write_RallyPoint(uint8_t total, sequence : sequence, latitude : rally_point.lat, longitude : rally_point.lng, - altitude : rally_point.alt + altitude : rally_point.alt, + flags : rally_point.flags }; return WriteBlock(&pkt_rally, sizeof(pkt_rally)); } diff --git a/libraries/AP_Logger/LogStructure.h b/libraries/AP_Logger/LogStructure.h index cfbfbbb1780314..ad6632a24cbe79 100644 --- a/libraries/AP_Logger/LogStructure.h +++ b/libraries/AP_Logger/LogStructure.h @@ -548,6 +548,7 @@ struct PACKED log_Rally { int32_t latitude; int32_t longitude; int16_t altitude; + uint8_t flags; }; struct PACKED log_Performance { @@ -968,6 +969,7 @@ struct PACKED log_VER { // @Field: Lat: latitude of rally point // @Field: Lng: longitude of rally point // @Field: Alt: altitude of rally point +// @Field: Flags: altitude frame flags // @LoggerMessage: RCI2 // @Description: (More) RC input channels to vehicle @@ -1286,7 +1288,7 @@ LOG_STRUCTURE_FROM_FENCE \ { LOG_DF_FILE_STATS, sizeof(log_DSF), \ "DSF", "QIHIIII", "TimeUS,Dp,Blk,Bytes,FMn,FMx,FAv", "s--b---", "F--0---" }, \ { LOG_RALLY_MSG, sizeof(log_Rally), \ - "RALY", "QBBLLh", "TimeUS,Tot,Seq,Lat,Lng,Alt", "s--DUm", "F--GGB" }, \ + "RALY", "QBBLLhB", "TimeUS,Tot,Seq,Lat,Lng,Alt,Flags", "s--DUm-", "F--GGB-" }, \ { LOG_MAV_MSG, sizeof(log_MAV), \ "MAV", "QBHHHBHH", "TimeUS,chan,txp,rxp,rxdp,flags,ss,tf", "s#----s-", "F-000-C-" }, \ LOG_STRUCTURE_FROM_VISUALODOM \