mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-22 08:38:36 -04:00
DataFlash: Log the frame a mission command is planned in
This commit is contained in:
parent
54b3936a46
commit
45410759dc
@ -1448,7 +1448,8 @@ bool DataFlash_Backend::Log_Write_MavCmd(uint16_t cmd_total, const mavlink_missi
|
|||||||
param4 : (float)mav_cmd.param4,
|
param4 : (float)mav_cmd.param4,
|
||||||
latitude : (float)mav_cmd.x,
|
latitude : (float)mav_cmd.x,
|
||||||
longitude : (float)mav_cmd.y,
|
longitude : (float)mav_cmd.y,
|
||||||
altitude : (float)mav_cmd.z
|
altitude : (float)mav_cmd.z,
|
||||||
|
frame : (uint8_t)mav_cmd.frame
|
||||||
};
|
};
|
||||||
return WriteBlock(&pkt, sizeof(pkt));
|
return WriteBlock(&pkt, sizeof(pkt));
|
||||||
}
|
}
|
||||||
|
@ -609,6 +609,7 @@ struct PACKED log_Cmd {
|
|||||||
float latitude;
|
float latitude;
|
||||||
float longitude;
|
float longitude;
|
||||||
float altitude;
|
float altitude;
|
||||||
|
uint8_t frame;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct PACKED log_Radio {
|
struct PACKED log_Radio {
|
||||||
@ -1203,7 +1204,7 @@ Format characters in the format string for binary log messages
|
|||||||
{ LOG_POWR_MSG, sizeof(log_POWR), \
|
{ LOG_POWR_MSG, sizeof(log_POWR), \
|
||||||
"POWR","QffH","TimeUS,Vcc,VServo,Flags", "svv-", "FBB-" }, \
|
"POWR","QffH","TimeUS,Vcc,VServo,Flags", "svv-", "FBB-" }, \
|
||||||
{ LOG_CMD_MSG, sizeof(log_Cmd), \
|
{ LOG_CMD_MSG, sizeof(log_Cmd), \
|
||||||
"CMD", "QHHHfffffff","TimeUS,CTot,CNum,CId,Prm1,Prm2,Prm3,Prm4,Lat,Lng,Alt", "s-------DUm", "F-------GG0" }, \
|
"CMD", "QHHHfffffffB","TimeUS,CTot,CNum,CId,Prm1,Prm2,Prm3,Prm4,Lat,Lng,Alt,Frame", "s-------DUm-", "F-------GG0-" }, \
|
||||||
{ LOG_RADIO_MSG, sizeof(log_Radio), \
|
{ LOG_RADIO_MSG, sizeof(log_Radio), \
|
||||||
"RAD", "QBBBBBHH", "TimeUS,RSSI,RemRSSI,TxBuf,Noise,RemNoise,RxErrors,Fixed", "s-------", "F-------" }, \
|
"RAD", "QBBBBBHH", "TimeUS,RSSI,RemRSSI,TxBuf,Noise,RemNoise,RxErrors,Fixed", "s-------", "F-------" }, \
|
||||||
{ LOG_CAMERA_MSG, sizeof(log_Camera), \
|
{ LOG_CAMERA_MSG, sizeof(log_Camera), \
|
||||||
|
Loading…
Reference in New Issue
Block a user