Arduino-PR&D 4

Run 1

//reverse motor for forward operation
reverse(4);
// accelerate all motors from 0 to 40% in 3 seconds
celerate(4,0,40,3);
// set all motor speed to 25% for one second
motorSpeed(4,40);
goFor(1);
//set all motor speed to 35% for two seconds
motorSpeed(4,35);
goFor(2);
//reverse all motors for backward operation
reverse(4);
//set all motor speed to 35% for two seconds
motorSpeed(4,35);
goFor(2);
//brake all motors of AEV
brake(4);
//save program as CSS1

 

Run 2

//reverse motor for forward operation
reverse(4);
// accelerate all motors from 0 to 25% in two seconds
celerate(4,0,40,3);
// set all motor speed to 40% for one second
motorSpeed(4,40);
goFor(2);
//set all motor speed to 35% for one seconds
motorSpeed(4,35);
goFor(1);
//reverse all motors for backward operation
reverse(4);
//set all motor speed to 40% for eight seconds
motorSpeed(4,40);
goFor(8);
//brake all motors of AEV
brake(4);
//save program as CSS1

 

Run 3

//reverse motor for forward operation
reverse(4);
// accelerate all motors from 0 to 40% in three seconds
celerate(4,0,40,3);
// set all motor speed to 40% for two second
motorSpeed(4,40);
goFor(2);
//set all motor speed to 35% for two seconds
motorSpeed(4,35);
goFor(2);
//reverse all motors for backward operation
reverse(4);
//set all motor speed to 40% for eight seconds
motorSpeed(4,40);
goFor(8);
//brake all motors of AEV
brake(4);
//save program as CSS1