Initial Test Code
The base code was used as a reference guide for speed testing. Varying motor power percentages were used to find the right cruising speed.
// Program between here——————————————————————-
//Motor percentage was a constantly changing factor as speed was the variable being tested
motorSpeed(4,20);
goFor(2);
reverse(4);
//Brake percentage was also touched up with each run
motorSpeed(4,25);
goFor(2);
brake(4);
// And here——————————————————————————–
} // DO NOT REMOVE. end of void myCode()
Final Test Code
After numerous tests, a power of 40% was determined to the optimal travel and brake power for the AEV.
// Program between here——————————————————————-
//Final Motor percentage was 40%
motorSpeed(4,40);
goFor(2);
reverse(4);
//Final Brake Speed was 40%
motorSpeed(4,40);
goFor(2);
brake(4);
// And here——————————————————————————–
} // DO NOT REMOVE. end of void myCode()