voidmyCode()
{
//First quarter
//Reverse all motors
reverse(4);
//Run all motors for 40% power
motorSpeed(4,40);
//Run all motors to specific position for 1.35 seconds
goToAbsolutePosition(169.5);
goFor(1.35);
//Reverse all motors
reverse(4);
//Run all motors for 37.5 seconds for 1 second
motorSpeed(4,37.5);
goFor(1);
//Brake all motors for 9 seconds
brake(4);
goFor(9);
//Second Quarter
//Reverse all motors
reverse(4);
//Run all motors for 40 seconds
motorSpeed(4,40);
//Run all motors to specific position for 0.5 seconds
goToAbsolutePosition(660);
goFor(0.5);
//Reverse all motors
reverse(4);
//Run all motors for 40% power for 1 second
motorSpeed(4,40);
goFor(1);
//Brake all motors for 8 seconds
brake(4);
goFor(8);
//Third Quarter
//Run all motors for 55 seconds
motorSpeed(4,55);
//Run all motors to specific positionfor 0.5 seconds
goToAbsolutePosition(553.5);
goFor(0.5);
//Reverse all motors
reverse(4);
//Run all motors for 47% for 1 second
motorSpeed(4,47);
goFor(1);
//Brake all motors for 9 seconds
brake(4);
goFor(9);
//Fourth Quarter
//Reverse all motors
reverse(4);
//Run all motors for 55 seconds
motorSpeed(4,55);
//Run all motors to specific position
goToAbsolutePosition(142);
//Reverse all motors
reverse(4);
//Run all motors for 45 seconds
motorSpeed(4,45);
}