My partner and I are trying to build are trying to build an autonomous robot that runs off of gps navigation. We are encountering problems concerning our Arduino code. We have managed to successfully get the robot to display “Waiting for GPS” and the “GPS Acquired” sequences. However, after we have acquired a GPS fix, it counts down from 10-1, but then jumps to the end of the code and displays “Last Waypoint”. We will attach the code, and would appreciate anyone’s help. We are beginners at Arduino programming and are using someone else’s code who did a similar project. We have no clue why the code seems to start successfully but then jumps to the end. We have our own waypoints put in, along with the waypoint class included. Any ideas?
RC_CAR_PROGRAM.ino (23.1 KB)