From ada7d700c2ed470700350e3f6e022ab8866af999 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Wed, 6 Sep 2017 13:35:45 +1000 Subject: [PATCH] Tools: support for units on fields Tools: add units to minimal log format Tools: add units to CHEK message --- Tools/Replay/LogReader.cpp | 6 +++++- Tools/Replay/Replay.cpp | 6 +++--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/Tools/Replay/LogReader.cpp b/Tools/Replay/LogReader.cpp index 86a802a1d6..5b1562bde5 100644 --- a/Tools/Replay/LogReader.cpp +++ b/Tools/Replay/LogReader.cpp @@ -32,7 +32,11 @@ extern const AP_HAL::HAL& hal; const struct LogStructure log_structure[] = { LOG_COMMON_STRUCTURES, { LOG_CHEK_MSG, sizeof(log_Chek), - "CHEK", "QccCLLffff", "TimeUS,Roll,Pitch,Yaw,Lat,Lng,Alt,VN,VE,VD" } + "CHEK", + "QccCLLffff", + "TimeUS,Roll,Pitch,Yaw,Lat,Lng,Alt,VN,VE,VD", + "sdddDUmnnn", + "FBBBGGB000"} }; LogReader::LogReader(AP_AHRS &_ahrs, AP_InertialSensor &_ins, AP_Baro &_baro, Compass &_compass, AP_GPS &_gps, diff --git a/Tools/Replay/Replay.cpp b/Tools/Replay/Replay.cpp index aa83c83f31..80879cfd1e 100644 --- a/Tools/Replay/Replay.cpp +++ b/Tools/Replay/Replay.cpp @@ -102,11 +102,11 @@ void ReplayVehicle::load_parameters(void) static const struct LogStructure min_log_structure[] = { { LOG_FORMAT_MSG, sizeof(log_Format), - "FMT", "BBnNZ", "Type,Length,Name,Format,Columns" }, + "FMT", "BBnNZ", "Type,Length,Name,Format,Columns", "-b---", "-----" }, { LOG_PARAMETER_MSG, sizeof(log_Parameter), - "PARM", "QNf", "TimeUS,Name,Value" }, + "PARM", "QNf", "TimeUS,Name,Value", "s--", "F--" }, { LOG_MESSAGE_MSG, sizeof(log_Message), - "MSG", "QZ", "TimeUS,Message"}, + "MSG", "QZ", "TimeUS,Message", "s-", "F-" }, }; void ReplayVehicle::setup(void)