A R&D Test 03 Code

//to gate
celerate(4,0,40,1.5);
goToAbsolutePosition(200);
brake(4);
goToAbsolutePosition(288);
rotateServo(45);
goFor(2);
rotateServo(0);
goFor(5.5);

//gate to caboose
celerate(4,0,38,1.5);
goToAbsolutePosition(410);
brake(4);
goToAbsolutePosition(631);
rotateServo(45);
goFor(2);
rotateServo(0);
goFor(5);

//caboose to gate
reverse(4);
celerate(4,0,49,2);
goToAbsolutePosition(395);
brake(4);
goToAbsolutePosition(383);
rotateServo(45);
goFor(2);
rotateServo(0);
goFor(7);

//gate to end
celerate(4,50,40,1);
goToAbsolutePosition(215);
brake(4);
goToAbsolutePosition(48);
rotateServo(45);
goFor(2);
rotateServo(0);