Tracker: fix formatting issues

This commit is contained in:
Randy Mackay 2016-06-09 23:13:51 +09:00
parent f3461d182f
commit 0e3dfb9e5e
1 changed files with 9 additions and 11 deletions

View File

@ -36,7 +36,6 @@ struct PACKED log_Vehicle_Baro {
// Write a vehicle baro packet
void Tracker::Log_Write_Vehicle_Baro(float pressure, float altitude)
{
struct log_Vehicle_Baro pkt = {
LOG_PACKET_HEADER_INIT(LOG_V_BAR_MSG),
time_us : AP_HAL::micros64(),
@ -57,16 +56,16 @@ struct PACKED log_Vehicle_Pos {
};
// Write a vehicle pos packet
void Tracker::Log_Write_Vehicle_Pos(int32_t lat,int32_t lng,int32_t alt,float heading,float ground_speed){
void Tracker::Log_Write_Vehicle_Pos(int32_t lat, int32_t lng, int32_t alt, float heading, float ground_speed)
{
struct log_Vehicle_Pos pkt = {
LOG_PACKET_HEADER_INIT(LOG_V_POS_MSG),
time_us : AP_HAL::micros64(),
vehicle_lat : lat,
vehicle_lng : lng,
vehicle_alt : alt,
vehicle_heading : heading,
vehicle_speed : ground_speed,
vehicle_lat : lat,
vehicle_lng : lng,
vehicle_alt : alt,
vehicle_heading : heading,
vehicle_speed : ground_speed,
};
DataFlash.WriteBlock(&pkt, sizeof(pkt));
}
@ -74,12 +73,11 @@ void Tracker::Log_Write_Vehicle_Pos(int32_t lat,int32_t lng,int32_t alt,float he
const struct LogStructure Tracker::log_structure[] = {
LOG_COMMON_STRUCTURES,
{LOG_V_BAR_MSG, sizeof(log_Vehicle_Baro),
"VBAR", "Qff", "TimeUS,Press,AltDiff" },
"VBAR", "Qff", "TimeUS,Press,AltDiff" },
{LOG_V_POS_MSG, sizeof(log_Vehicle_Pos),
"VPOS", "QLLeff", "TimeUS,Lat,Lng,Alt,Heading,Speed" }
"VPOS", "QLLeff", "TimeUS,Lat,Lng,Alt,Heading,Speed" }
};
void Tracker::Log_Write_Vehicle_Startup_Messages()
{
DataFlash.Log_Write_Mode(control_mode);