Getting Familiar With AEV and Software (Lab 1)

Purpose:

The overall challenge was introduced to the team. The team had time to brainstorm initial ideas and to make sure all components were provided to complete the project. The last task was to get comfortable with the software that would be used throughout the challenge and to see initial performance of the AEV on the test track.

Code:
celerate(1,0,15,2.5);//accelerate motor 1 at 15% power in 2.5 seconds
motorSpeed(1,15);//set motor 1 to 15% power
goFor(1);//keep 1 motor at 15% power for 1 second
brake(1);//turn off motor 1
celerate(2,0,27,4);//accelerate motor 1 and 2 to 27% power in 4 seconds
motorSpeed(2,27);//set motor 1 and 2 to 27% power
goFor(2.7);//keep motors at 27% power for 2.7 seconds
celerate(2,27,15,1);//decelerate motors from 27% power to 15% power in 1 second
brake(2);//turn off motor 1 and 2
reverse(2);//set motor 1 and 2 to rotate in opposite direction
celerate(4,0,31,2);//accelerate all 4 motors from 0% to 31% power in 2 seconds
motorSpeed(4,35);//set all 4 motors to 35% power
goFor(1);//keep motors at 35% for 1 second
brake(2);//turn off 2 motors
reverse(2);//set motor 1 and 2 to rotate in opposite direction
motorSpeed(1,35);//set motor 1 to 35% power
goFor(3);//keep motor at 35% power for 3 seconds
brake(1);//turn off motor 1
reverse(1);//set motor 1 to rotate in opposite direction
motrotspeed(1,19);//set motor 1 to 19% power
motorSpeed(2,35);//set motor 1 and 2 to 35% power
goFor(2);//keep motors at 35% power for 2 seconds
motorSpeed(4,19);//set all 4 motors to 19% power
goFor(2);//keep all 4 motors at 19% power for 2 seconds
celerate(4,19,0,3)//decelerate all 4 motors from 19% to 0% power in 3 seconds
brake(4);//turn off all 4 motors

This code was used to test the functionality of the Arduino and our motors.