How to Extract GPS Waypoints from Dataflash Logs for Rover Path Following
Hi all,
I am working with a Pixhawk Cube Orange + Holybro F9P GPS setup on my rover using ArduRover (latest firmware) and Mission Planner. I want to:
Drive the rover manually along a desired path
Extract the exact GPS Lat/Lon points of the path it travelled
Use these as AUTO mode waypoints for future missions
I tried:
- Opening Dataflash logs in Mission Planner → I see the path on the map,
- But I want to get the raw Lat/Lon coordinates as a list to create a mission plan.
- What is the best way to extract these GPS points efficiently from Dataflash logs?
- Is there any direct feature in Mission Planner for this conversion to .waypoints format?
- Any scripts or workflows others use for teach and repeat” missions with/without companion computers?
My current setup:
Pixhawk Cube Orange
Holybro F9P GPS
Thank you in advance for your support.
Mission Planner has a “create kml + gpx” which might get you started on the right path
1 Like
Thank you for the suggestion.
I tried using “Create KML + gpx” in Mission Planner. It does export a file viewable in Google Earth, but I have a few doubts:
Does this export all GPS points recorded along the path, or only specific logged events?
How can I extract these lat/lon points as a clean list or CSV for creating waypoints?
Is there any direct way to convert this GPX or KML into a .waypoints mission file for AUTO mode, without writing a custom script?
Appreciate any guidance on this workflow. Thanks again!
If you compare the kml in google earth with plotbeta.ardupilot.org it should show you how close the data is, if it encompasses all of the flight or not.
I’m not directly familiar with the gpx format, but scripting a conversion from kml to the waypoint file would be a satisfying few hours of work in your favorite programming language.
I can envision a lua script that writes the waypoint mission to the sd card directly for you.