mirror of https://github.com/ArduPilot/ardupilot
AP_Logger: added build directory to VER message
this allows log review tools to use right parameter and mode map when vendor has changed the vehicle type strings
This commit is contained in:
parent
943d01b83b
commit
19ca00afde
|
@ -561,6 +561,7 @@ bool AP_Logger_Backend::Write_VER()
|
|||
patch: fwver.patch,
|
||||
fw_type: fwver.fw_type,
|
||||
git_hash: fwver.fw_hash,
|
||||
build_type: fwver.vehicle_type,
|
||||
};
|
||||
strncpy(pkt.fw_string, fwver.fw_string, ARRAY_SIZE(pkt.fw_string)-1);
|
||||
|
||||
|
|
|
@ -684,6 +684,7 @@ struct PACKED log_VER {
|
|||
uint32_t git_hash;
|
||||
char fw_string[64];
|
||||
uint16_t _APJ_BOARD_ID;
|
||||
uint8_t build_type;
|
||||
};
|
||||
|
||||
|
||||
|
@ -1344,7 +1345,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", "QBHBBBBIZH", "TimeUS,BT,BST,Maj,Min,Pat,FWT,GH,FWS,APJ", "s---------", "F---------", false }, \
|
||||
"VER", "QBHBBBBIZHB", "TimeUS,BT,BST,Maj,Min,Pat,FWT,GH,FWS,APJ,BU", "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