(Design 1)
//reverse all motors to start moving
reverse(4);
//Run all motors at a constant speed (30% power)
motorSpeed(4,30);
//Go to the exact position for 1.35 seconds
goToAbsolutePosition(246);
goFor(1.35);
//reverse all motor to slow down the AEV
reverse(4);
//Run all motors at a constant speed (30% power) for 1 second
motorSpeed(4,30);
goFor(1);
//Brake all motors for 7 seconds
brake(4);
goFor(7);
(Design 2)
//reverse motor 2 to start moving
reverse(2);
//Run motor 2 at a constant speed (30% power)
motorSpeed(2,30);
//Go to the exact position for 2.3 seconds
goToAbsolutePosition(238);
goFor(2.3);
//reverse motor 2 to slow down the AEV
reverse(2);
//Run motor 2 at a constant speed (30% power) for 1 second
motorSpeed(2,30);
goFor(1);
//brake motor 2 for 7 seconds
brake(2);