mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-07 00:13:59 -04:00
Tracker: support for units on fields
This commit is contained in:
parent
bf6b3a72bc
commit
4e39496046
@ -70,12 +70,15 @@ void Tracker::Log_Write_Vehicle_Pos(int32_t lat, int32_t lng, int32_t alt, const
|
|||||||
DataFlash.WriteBlock(&pkt, sizeof(pkt));
|
DataFlash.WriteBlock(&pkt, sizeof(pkt));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// type and unit information can be found in
|
||||||
|
// libraries/DataFlash/Logstructure.h; search for "log_Units" for
|
||||||
|
// units and "Format characters" for field type information
|
||||||
const struct LogStructure Tracker::log_structure[] = {
|
const struct LogStructure Tracker::log_structure[] = {
|
||||||
LOG_COMMON_STRUCTURES,
|
LOG_COMMON_STRUCTURES,
|
||||||
{LOG_V_BAR_MSG, sizeof(log_Vehicle_Baro),
|
{LOG_V_BAR_MSG, sizeof(log_Vehicle_Baro),
|
||||||
"VBAR", "Qff", "TimeUS,Press,AltDiff" },
|
"VBAR", "Qff", "TimeUS,Press,AltDiff", "sPm", "F00" },
|
||||||
{LOG_V_POS_MSG, sizeof(log_Vehicle_Pos),
|
{LOG_V_POS_MSG, sizeof(log_Vehicle_Pos),
|
||||||
"VPOS", "QLLefff", "TimeUS,Lat,Lng,Alt,VelX,VelY,VelZ" }
|
"VPOS", "QLLefff", "TimeUS,Lat,Lng,Alt,VelX,VelY,VelZ", "sddmnnn", "FGGB000" }
|
||||||
};
|
};
|
||||||
|
|
||||||
void Tracker::Log_Write_Vehicle_Startup_Messages()
|
void Tracker::Log_Write_Vehicle_Startup_Messages()
|
||||||
|
Loading…
Reference in New Issue
Block a user