DataFlash: added APM time and GPS velz to logged GPS messages
This commit is contained in:
parent
b096881f81
commit
1fb636d57f
@ -152,6 +152,7 @@ struct PACKED log_GPS {
|
||||
uint32_t ground_speed;
|
||||
int32_t ground_course;
|
||||
float vel_z;
|
||||
uint32_t apm_time;
|
||||
};
|
||||
|
||||
struct PACKED log_Message {
|
||||
@ -172,7 +173,7 @@ struct PACKED log_IMU {
|
||||
{ LOG_PARAMETER_MSG, sizeof(log_Parameter), \
|
||||
"PARM", "Nf", "Name,Value" }, \
|
||||
{ LOG_GPS_MSG, sizeof(log_GPS), \
|
||||
"GPS", "BIHBcLLeeEef", "Status,TimeMS,Week,NSats,HDop,Lat,Lng,RelAlt,Alt,Spd,GCrs,VelZ" }, \
|
||||
"GPS", "BIHBcLLeeEefI", "Status,TimeMS,Week,NSats,HDop,Lat,Lng,RelAlt,Alt,Spd,GCrs,VZ,T" }, \
|
||||
{ LOG_IMU_MSG, sizeof(log_IMU), \
|
||||
"IMU", "Iffffff", "TimeMS,GyrX,GyrY,GyrZ,AccX,AccY,AccZ" }, \
|
||||
{ LOG_MESSAGE_MSG, sizeof(log_Message), \
|
||||
|
@ -616,7 +616,8 @@ void DataFlash_Class::Log_Write_GPS(const GPS *gps, int32_t relative_alt)
|
||||
altitude : gps->altitude_cm,
|
||||
ground_speed : gps->ground_speed_cm,
|
||||
ground_course : gps->ground_course_cd,
|
||||
vel_z : gps->velocity_down()
|
||||
vel_z : gps->velocity_down(),
|
||||
apm_time : hal.scheduler->millis()
|
||||
};
|
||||
WriteBlock(&pkt, sizeof(pkt));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user