On board Flight logs for post flight anatysis COPTER-4.0.3

HI Guys,

I noticed in Copter-4.0.3 there is logging onboard. Specifically I am interested in this chunk of code:

// Write a Guided mode target
void Copter::Log_Write_GuidedTarget(uint8_t target_type, const Vector3f& pos_target, const Vector3f& vel_target)
{
struct log_GuidedTarget pkt = {
LOG_PACKET_HEADER_INIT(LOG_GUIDEDTARGET_MSG),
time_us : AP_HAL::micros64(),
type : target_type,
pos_target_x : pos_target.x,
pos_target_y : pos_target.y,
pos_target_z : pos_target.z,
vel_target_x : vel_target.x,
vel_target_y : vel_target.y,
vel_target_z : vel_target.z
};
logger.WriteBlock(&pkt, sizeof(pkt));
}

Where can I find this information post flight for analysis and check the data ie. the above specific fields that were set.

Check the GUID name inside the log file. Although apparent from the source code, the field definition are also given in here..

If you search LOG_GUIDEDTARGET_MSG inside the ardupilot source code you will find the log field name and their unit in here.

Thanks, and is this just in the onboard dataflash log file? Or what specifically file does this get written to onboard?

I noticed in Copter-4.0.3 there is logging onboard. Specifically I am interested in this chunk of code:

void Copter::Log_Write_GuidedTarget(uint8_t target_type, const Vector3f& pos_target, const Vector3f& vel_target)

https://ardupilot.org/copter/docs/logmessages.html#guid-guided-mode-target-information

Where can I find this information post flight for analysis and check the data ie. the above specific fields that were set.

https://ardupilot.org/copter/docs/common-downloading-and-analyzing-data-logs-in-mission-planner.html

once you have the .bin file use plot.ardupilot.org to analize it.