Final Performance Test Code

rotateServo(27.00);                               –rotates the sevo 27 degrees

goFor(0.5);                                            –pauses for half a second

reverse(1);                                             –reverses motor 1

reverse(4);                                            –reverses all motors

motorSpeed(4,33);                                –sets all motors to 33% power

goToAbsolutePosition(233);                   –travels forward to absolute position 233

motorSpeed(4,15);                                –decreases motor power to 15%

goToAbsolutePosition(260);                   –travels forward to position 260

brake(4);                                               –brakes all motors

rotateServo(118.00);                             –rotates the servo to brake

goFor(8);                                              –pauses for 8 seconds

rotateServo(27.00);                               –rotates servo to release brake

goFor(0.5);                                            –pauses for half a second

motorSpeed(4,35);                               –sets motor power to 35%

goToAbsolutePosition(390);                   –travels forward to position 390

motorSpeed(4,15);                                –sets motor power to 15%

goToAbsolutePosition(596);                   –travels forward to position 596

brake(4);                                               –brakes all motors

rotateServo(118.00);                             –rotates servo to brake

goFor(7);                                              –pauses for 7 seconds

rotateServo(27.00);                               –rotates servo to release brake

goFor(1);                                              –pauses for 1 second

reverse(4);                                            –reverses all motors to pull the AEV backward

motorSpeed(4,55);                                –sets the motor power to 55%

goToAbsolutePosition(383);                   –travels backward to position 383

motorSpeed(4,30);                                –sets motor power to 30%

goToAbsolutePosition(366);                   –continues travelling backward to position 366

brake(4);                                              –brakes all motors

rotateServo(118.00);                             –rotates the servo to brake

goFor(8);                                              –pauses for 8 seconds

rotateServo(27.00);                               –rotates servo to release brake

goFor(0.5);                                            –pauses for half a second

motorSpeed(4,55);                                –sets motor power to 55%

goToAbsolutePosition(240);                   –continues travelling backward to position 240

motorSpeed(4,25);                                –decreases motor power to 25%

goToAbsolutePosition(140);                   –travels back to position 140

motorSpeed(4,15);                                –decreases motor power to 15%

goToAbsolutePosition(30);                     –travels to position 30

brake(4);                                               –brakes all motors

rotateServo(120.00);                             –rotates servo to brake