I made a robot that avoids obstacles with ultrasonic sensors, it works very well.
I added a GPS module to make it work outdoors in a given perimeter, it circulates randomly in the determined perimeter avoiding obstacles.
I would like it to make straight trajectories in the perimeter and not random.
My idea is to create a table with the gps coordinates calculated according to the perimeter.
But from there I don't know where to start.
I work in decimal degrees
example of coordinate: 47.0546321; 1.3521723 47.0545123; 1.3522321 47.0544321; 1.3521123 47.0545123; 1.3520321