mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
AP_Logger: added VER.FV for filter version
This commit is contained in:
parent
25ffcc1580
commit
89ec6ac645
@ -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);
|
||||
|
||||
|
@ -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 }
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user