The team initially began the coding process using strictly time functions. The goFor(); command was used due to its simplicity when coding. The team also did not want to struggle through the use of the reflectance sensors.
As testing continued, the team realized that the use of time commands was very inefficient. The code varied between each run and the operational consistency of the AEV was extremely low. The team then decided to convert their coding method from time to distance utilizing the reflectance sensors.
This switch to the reflectance sensors allowed for the team’s Advanced Energy Vehicle to perform much more consistently. The team used the goToAbsolutePosition(); command as the main function in the Arduino code. This function was used in both the Room 308 and Room 224 code in which both successfully completed runs on the monorail track.