Preliminary R&D Run 1

celerate(4,0,25,2);                   — Accelerates all motors from 0% to 25% power in 2 second

motorSpeed(4,20);                  — Runs all motors at a constant speed of 20% power

goToAbsolutePosition(295);   –AEV travels 12 feet

reverse(4);                                   –Reverse both motors

motorSpeed(4,30);                      –runs all motors at 30%

goFor(1.5);                                     –runs for 1.5 seconds

brake(4);                                         –brakes all motors

 

Summary of Code: the above code was used as a preliminary test for Performance Test 1. The AEV was to travel to the gate and stop between the two gate sensors.