10- Performance Test 3

reverse(4);

%This reverses the motors
motorSpeed(4,30);

%This sets all motors to a speed of 30
goToAbsolutePosition(-190);

%This goes to the specified absolute position
motorSpeed(4,0);

%This stops all of the motors
goToAbsolutePosition(-365);

%This goes to the absolute position of -365
reverse(4);

%This reverses all the motors
motorSpeed(4,25);

%Changes all motors to this speed
goFor(1);

%Goes for one second
brake(4);

%Brakes all motors
goFor(7);

%This moves the AEV for seven seconds

reverse(4);

%This reverses all the motors
motorSpeed(4,30);

%This changes all the motors to a speed of 30
goToAbsolutePosition(-590);

%This goes to the specified absolute position
brake(4);

%This brakes all of the motors
goFor(10);

%This moves the AEV for 10 seconds

reverse(4);

%This reverses all of the motors
motorSpeed(4,40);

%This sets all of the motor speeds to 40
goToRelativePosition(185);

%This goes to the specified position
motorSpeed(4,0);

%This sets all motor speeds to 40
goToRelativePosition(160);

%This goes to the specified position
reverse(4);

%This reverses all the motors
motorSpeed(4,40);

%This sets all motors to a speed of 40
goFor(1.25);

%This moves the AEV for 1.25 seconds
brake(4);

%Brakes all motors
goFor(6);

%Moves for six seconds

reverse(4);

%Reverses all the motors
motorSpeed(4,35);

%This sets all motors to a speed of 35
goToAbsolutePosition(-180);

%This goes to the specified position
motorSpeed(4,0);

%Sets all motor speeds to zero
goToAbsolutePosition(-70);

%This goes to the specified position
reverse(4);

%Reverses all motors
motorSpeed(4,35);

%Sets all motors to a speed of 35
goFor(0.5);

%Goes for .5 seconds
brake(4);

%Brakes all the motors