Code

Advanced R&D 1 & 2 Code:

reverse(4);

motorSpeed(4,25);

goFor(3);

brake(4);

motorSpeed(4,25);

goFor(3);

reverse(4);

motorSpeed(4,25);

goFor(6);

brake(4);

 

Performance Test 1 Code (Lab 224):

reverse(4);

motorSpeed(4,25);

goToAbsolutePosition(230);

brake(4);

goFor(2);

reverse(4);

motorSpeed(4,35);

goFor(0.75);

brake(4);

goFor(7.5);

 

Performance Test 1 Code (Lab 308):

reverse(4);

motorSpeed(4,25);

goToAbsolutePosition(240);

brake(4);

goFor(2);

reverse(4);

motorSpeed(4,35);

goFor(0.75);

brake(4);

goFor(7.5);

 

Performance Test 2 Code (Lab 308):

reverse(4);

motorSpeed(4,26);

goToAbsolutePosition(240);

brake(4);

goFor(1.5);

reverse(4);

motorSpeed(4,37);

goFor(0.85);

brake(4);

goFor(7);

reverse(4);

motorSpeed(4,35);

goFor(2);

brake(4);

goFor(3.2);

reverse(4);

motorSpeed(4,36.7);

goFor(1.67);

brake(4);

goFor(5);

motorSpeed(4,50);

goFor(4);

brake(4);

 

A R&D 3 Code (LAB 308):

reverse(4);

motorSpeed(4,35);

goToRelativePosition(175);

brake(4);

goFor(3);

reverse(4);

motorSpeed(4,35);

goToRelativePosition(-75);

brake(4);

 

Final Performance Test Code (Lab 308):

reverse(4);

motorSpeed(4,26);

goToRelativePosition(240);

brake(4);

goFor(1.5);

reverse(4);

motorSpeed(4,37);

goFor(0.85);

brake(4);

goFor(7);

reverse(4);

motorSpeed(4,36);

goToRelativePosition(78);

brake(4);

goFor(3);

reverse(4);

motorSpeed(4,38);

goFor(1.2);

brake(4);

goFor(5);

motorSpeed(4,54);

goToRelativePosition(-200);

brake(4);

goFor(1);

reverse(4);

motorSpeed(4,39);

goFor(1.3);

brake(4);

goFor(7);

reverse(4);

motorSpeed(4,55);

goToRelativePosition(-163);

brake(4);

goFor(1.3);

reverse(4);

motorSpeed(4,55);

goFor(1.6);

brake(4);