we’re trying to use the rtk in an automatic toy car using a raspberry pi and python. I’m able to connect the rtk to the raspberry pi and receive a location but how can I extract the information to use in the python code like in a while loop for example. We basically want the car to know it’s current location and automatically drive towards a gps waypoint.
replied 2 years ago
Ok, and what’s stopping you from reading the TTY and parsing the data in a loop?
You’d probably want to start by reading your waypoint file into an array of lat/lon values.
Perhaps consider using the QGroundControl format exported by Mission Planner, et al
Look at the direction you’re pointing/moving, and figure your bearing and distance to the waypoint