AP_Logger: added VER.FV for filter version

This commit is contained in:
Andrew Tridgell 2024-01-30 14:37:34 +11:00
parent 25ffcc1580
commit 89ec6ac645
2 changed files with 5 additions and 1 deletions

View File

@ -11,6 +11,7 @@
#include <AP_Scheduler/AP_Scheduler.h>
#include <AP_Rally/AP_Rally.h>
#include <AP_Vehicle/AP_Vehicle_Type.h>
#include <Filter/Filter.h>
#include "AP_Logger.h"
#if HAL_LOGGER_FENCE_ENABLED
@ -574,6 +575,7 @@ bool AP_Logger_Backend::Write_VER()
patch: fwver.patch,
fw_type: fwver.fw_type,
git_hash: fwver.fw_hash,
filter_version: AP_FILTER_VERSION,
};
strncpy(pkt.fw_string, fwver.fw_string, ARRAY_SIZE(pkt.fw_string)-1);

View File

@ -660,6 +660,7 @@ struct PACKED log_VER {
char fw_string[64];
uint16_t _APJ_BOARD_ID;
uint8_t build_type;
uint8_t filter_version;
};
@ -1170,6 +1171,7 @@ struct PACKED log_VER {
// @Field: FWS: Firmware version string
// @Field: APJ: Board ID
// @Field: BU: Build vehicle type
// @Field: FV: Filter version
// @LoggerMessage: MOTB
// @Description: Motor mixer information
@ -1300,7 +1302,7 @@ LOG_STRUCTURE_FROM_AIS \
{ LOG_SCRIPTING_MSG, sizeof(log_Scripting), \
"SCR", "QNIii", "TimeUS,Name,Runtime,Total_mem,Run_mem", "s#sbb", "F-F--", true }, \
{ LOG_VER_MSG, sizeof(log_VER), \
"VER", "QBHBBBBIZHB", "TimeUS,BT,BST,Maj,Min,Pat,FWT,GH,FWS,APJ,BU", "s----------", "F----------", false }, \
"VER", "QBHBBBBIZHBB", "TimeUS,BT,BST,Maj,Min,Pat,FWT,GH,FWS,APJ,BU,FV", "s-----------", "F-----------", false }, \
{ LOG_MOTBATT_MSG, sizeof(log_MotBatt), \
"MOTB", "QfffffB", "TimeUS,LiftMax,BatVolt,ThLimit,ThrAvMx,ThrOut,FailFlags", "s------", "F------" , true }