I have been trying to get data flash logs off my pixhawk and am encountering issues. If I flash the default arduplane onto the pixhawk from mission planner-initial setup-install firmware, when I connect the pixhawk to mission planner and go to retrieve the data flash logs they do appear and are able to be downloaded. As soon as I load my code onto the pixhawk (using GIT Bash and px4 console) I run into problems. I turn on the pixhawk (unconnected to mission planner) and get the pixy camera to respond to a red ball I move in and out of sight. I then turn off the pixhawk and connect it to mission planner. When I go to retrieve the data flash logs I get an error saying:
Error:System.TimeoutException: Timeout on read - GetLogEntry at MissionPlanner.MAVLinkInterface.GetLogEntry(UInt16 startno, UInt16 endno) in C:\Users\michael\Source\Repos\MissionPlanner\Mavlink\MAVLinkInterface.cs:line 4565
at MissionPlanner.MAVLinkInterface.GetLogList() in C:\Users\michael\Source\Repos\MissionPlanner\Mavlink\MAVLinkInterface.cs:line 4505
at MissionPlanner.Log.LogDownloadMavLink.b__12_0() in C:\Users\michael\Source\Repos\MissionPlanner\Log\LogDownloadMavLink.cs:line 9
How do I avoid this error and get data flash logs from the board when it is using my code. I am carrying on a project and I know that the code works fine, I am able to upload it etc, but I need to be able to log it to move forward.