Performance Test 1 & 2

Performance Test 1

 

//accelerate up the track and cut power at top

celerate(4,0,40,1.5);

motorSpeed(4,40);

goToAbsolutePosition(-220);

motorSpeed(4,0);

goToAbsolutePosition(-236);

 

//stop at the gate and wait for 7 seconds

reverse(4);

motorSpeed(4,80);

goFor(0.55);

brake(4);

goFor(8);

 

//proceed through gate

reverse(4);

celerate(4,0,30,3);

goToRelativePosition(-200);

reverse(4);

motorSpeed(4,40);

goFor(.5);

 

Performance Test 2

 

//accelerate to the top

celerate(4,0,40,1);

motorSpeed(4,40);

goToAbsolutePosition(-220);

motorSpeed(4,0);

 

//roll to gate and brake

goToAbsolutePosition(-264);

reverse(4);

motorSpeed(4,80);

goFor(0.55);

brake(4);

goFor(8);//stop at the gate

 

//proceed through gate

reverse(4);

celerate(4,0,40,3);

motorSpeed(4,40);

goFor(2.75);

motorSpeed(4,0);

goToAbsolutePosition(-520);

 

//slow down before connecting to caboose

reverse(4);

motorSpeed(4,25);

goFor(.6);

motorSpeed(4,0);

 

//wait for 5 then pull caboose

goFor(10);

celerate(4,0,60,2);

goFor(4);