Performance Test 1

 

    

Figure: Prototype AEV Design

Performance Test 1 Codes:

motorSpeed(4,40); // all four motors, 40% power

goToAbsolutePosition(-260); // position of 260 marks in opposite

reverse(4); // reverse the motors

motorSpeed(4,55); // all four motors, 55%power

goFor(1); // for 1 second

brake(4); // cut all power to the motors

goFor(7); //for seven seconds

reverse(4); // reverse the motors

motorSpeed(4,40); // all four motors, 40%power

goFor(3); // for 3 seconds

reverse(4); //reverse the motors

motorSpeed(4,55); // all four motors, 55% power

goFor(1); // for 1 second

brake(4);
//1. Run all motors at a constant speed of 25% power for 2 seconds.

motorSpeed(4,25);

goFor(2);

//2. Run all motors at a constant speed of 20% and using the goToAbsolutePosition function travel a total distance of 12 feet (from the starting pointmotorSpeed(4,20);

goToAbosolutePosition(296);

//3. Reverse motors.

reverse(4);

//4. Run all motors at a constant speed of 30% power for 1.5 second.

motorSpeed(4,30);

goFor(1.5);

//5. Brake all motors.

brake(4);

//1. Accelerate all motors from start to 25% in 3 seconds.

celerate(4,0,25,3);

//2. Run all motors at a constant speed (25% power) for 1 second.

motorSpeed(4,25);

goFor(1);

//3. Run all motors at 20% power for 2 seconds.

motorSpeed(4,20);

goFor(2);

//4. Reverse all motors.

reverse(4);

//5. Run all motors at a constant speed (25% power) for 2 second.

motorSpeed(4,25);

goFor(2);

//6. Brake all motors.

brake(4);