// Reverse all motors.
reverse(4);
// Run all motors at 40% for 147.69 tick marks.
motorSpeed(4,40);
goToAbsolutePosition(147.69);
// Run all motors at 45% for 100 tick marks.
motorSpeed(4,45);
goToRelativePosition(100);
// Run all motors at 35% for 22 tick marks.
motorSpeed(4,35);
goToRelativePosition(22);
// Reverse all motors.
reverse(4);
// Run all motors at 50% for 1 second.
motorSpeed(4,50);
goFor(1);
// Brake all motors for 8 seconds.
brake(4);
goFor(8);
// Reverse all motors.
reverse(4);
// Run all motors at 50% for 105 tick marks.
motorSpeed(4,50);
goToRelativePosition(105);
// Brake all motors for 3 seconds.
brake(4);
goFor(3);
// Reverse all motors.
reverse(4);
// Run all motors at 45% for 1 second.
motorSpeed(4,45);
goFor(1);
// Brake all motors for 5 seconds.
brake(4);
goFor(5);
// Run all motors for 60% for -145 tick marks.
motorSpeed(4,60);
goToRelativePosition(-145);
// Run all motors at 65% for -55 tick marks.
motorSpeed(4,65);
goToRelativePosition(-55);
// Reverse all motors.
reverse(4);
// Run all motors at 80% for 1.5 seconds.
motorSpeed(4,80);
goFor(1.5);
// Brake all motors.
brake(4);