Concept Screening and Scoring

void myCode()

{

//reverse one of the motors because they are facing in opposite directions

//reverse(1);

 

//Accelerate all motors from start to 25% in 3 seconds

celerate(4, 0, 25, 3);

//Run all motors at a constant speed (25% power) for 1 second.

motorSpeed(4, 25);

//Continue previous function for 1 second

goFor(1);

//Run all motors at 20% power for 2 seconds.

celerate(4, 25, 20, 1);

//Keep all motors at a constant speed of 20% power

motorSpeed(4, 20);

//Continue previous function for 2 seconds

goFor(2);

//Reverse all motors.

reverse(4);

//Run all motors at a constant speed (25% power) for 2 second.

celerate(4, 20, 25, 1);

//Keeps all motors at a constant speed of 25% power

motorSpeed(4, 25);

//Continues previous function for 2 seconds

goFor(2);

//Brake all motors.

brake(4);

}