Raspberry pi automatic toy car, waypoint navigation

Q&A forumRaspberry pi automatic toy car, waypoint navigation
Gabriel asked 2 years ago
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

Want to learn more about GPS/RTK?

1. Our engineering team will contact you to solve any questions
2. We will keep you updated about promotions and new product releases
3.You will only hear from us when we have important news, we won’t spam your email