Tools: support for units on fields

Tools: add units to minimal log format

Tools: add units to CHEK message
This commit is contained in:
Peter Barker 2017-09-06 13:35:45 +10:00 committed by Peter Barker
parent 7aaf25afd3
commit ada7d700c2
2 changed files with 8 additions and 4 deletions

View File

@ -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,

View File

@ -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)