I’m writing a program that reads logs from a drone. The drone is connected via USB to a computer.
First, I send LOG_REQUEST_LIST and get a lot of LOG_ENTRY from the drone (61 logs are recorded there).
Then I send LOG_REQUEST_DATA to try to download the first log:
system_id - 255
component_id - MAV_COMP_ID_MISSIONPLANNER
target_system, target_component - from the Received drone HEARTBEAT
Log ID - usually 1, but I’ve tried others as well
offset - 0
count - I tried 1, 90 and 0xFFFFFFFF
I should be getting LOG_DATA, but I’m not getting it.
I tried sending LOG_REQUEST_DATA once per second, but I never received a response to it. What am I doing wrong?
The logs are transmitted well through Mission Planner, so the problem is not with the drone or the computer.