There were multiple stages to the code written for the Arduino Nano complete the final test run, starting with code running to the gate and ending with code that went all the way around the track and came back with the R2D2.
Running on the Straight Track
This code focused on powering the AEV on the straight track and then stopping the vehicle.
Testing the AEV with Different Commands
This code worked with different commands and familiarized the Arduino programming language.
Running to the Gate
This code ran the AEV to the gate and then stopped it at the first sensor, which allowed the gate to open.
A Full Test Run
This code successfully ran the AEV to the R2D2, and brought the R2D2 back to the starting point.
Final Test Run with Servo
This code was used for the graded final test run. It ran perfectly except for the missing five second wait period between Phases 3 and 4.