I'm having an issue downloading logs over telemetry from ardupilot using mavlink messages (using Mavlink V1 protocol and ArduCopter v3.6.11).
I'm able to use the LOG_REQUEST_LIST message to fetch the list of log files on the drone and I'm successfully receiving the LOG_ENTRY response message back.
Next, I create the LOG_REQUEST_DATA request message and then write it to the serial port.
var request = new mavlink.messages.log_request_data(targetSystem, targetComponent, 1, 0, 90);
Request object:
{
format: '<IIHBB',
id: 1,
order_map: [ 3, 4, 2, 0, 1 ],
crc_extra: 116,
name: 'LOG_REQUEST_DATA',
fieldnames: [ 'target_system', 'target_component', 'id', 'ofs', 'count' ],
target_system: 1,
target_component: 1,
ofs: 0,
count: 90
}
After that point I do not receive any message back with the name LOG_DATA.
What could I be doing wrong?