CSS1

File Name: CSS1.ino

Function: To test on the straight tracks.

Date Created: 1/24/18

Date Modified: 1/31/18

 

// Since our AEV moves backwards first, we include an extra line of code to reverse the motors.
reverse(4);

 

// 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);
goFor(1);

 

// Run all motors at 20% power for 2 seconds.
motorSpeed(4,20);
goFor(2);

 

// Reverse all motors.
reverse(4);

 

// Run all motors at a constant speed (25% power) for 2 second
motorSpeed(4,25);
goFor(2);

 

// Brake all motors.
brake(4);