Arduino-Performance Test 3

//reverse motor for forward operation
reverse(1);
//set motor speed to 25% for 312 marks
motorSpeed(1,25);
goToRelativePosition(312);
//brake motor 1 for 7 seconds
brake(1);
goFor(7);
//set motor speed to 25% for 310 marks then reduce motor speed to 21% 3 seconds
motorSpeed(1,25);
goToRelativePosition(310);
motorSpeed(1,21);
goFor(3);
//brake motor 1 for 5 seconds
brake(1);
goFor(5);
//reverse motor for forward operation
reverse(1);
//set motor speed to 40% for -40 marks then reduce to 25% motor speed for -248 marks
motorSpeed(1,40);
goToRelativePosition(-40);
motorSpeed(1,25);
goToRelativePosition(-248);
//brake motor 1 for 7 seconds
brake(1);
goFor(7);
//set motor speed to 40% for -80 marks
motorSpeed(1,40);

goToRelativePosition(-80);
//set motor speed to 25% and go to absolute position 58

motorSpeed(1,25);

goToAbsolutePosition(58);

//set motor speed to 20% for 2.25 seconds

motorSpeed(1,20);
goFor(2.25);