Preliminary R&D Codes

Lab 1 Program
celerate(1, 0, 15, 2.5); //The Aev accelerated from 0% to 15% on motor number 1 for 2.5 seconds
goFor(1); //The Aev runs for 1.0 seconds
brake(1); //Power stopped on motor number 1
celerate(2, 0, 27, 4); //The Aev accelerated from 0% to 27% on motor number 2 for 4.0 seconds
goFor(2.7); //The Aev runs for 2.7 seconds
celerate(2, 27, 15, 1); //The Aev accelerated from 27% to 15% on motor number 2 for 1.0 seconds
brake(2); //Power stopped on motor number 2
reverse(2); //Motor number 2 is now switching directions
celerate(4, 0, 31, 2); //The Aev accelerated from 0% to 31% on all the motors for 2.0 seconds
motorSpeed(4, 35); //The Aev speed is now 35% on all the motors
goFor(1); //The Aev runs for 1.0 seconds
brake(2); //Power stopped on motor number 2
goFor(3); //The Aev runs for 3.0 seconds
brake(4); //Power stopped on all the motors
goFor(1); //The Aev runs for 1.0 seconds
reverse(1); //Motor number 1 is now switching directions
celerate(1, 0, 19, 2); //The Aev accelerated from 0% to 19% on motor number 1 for 2.0 seconds
motorSpeed(2, 35); //The Aev speed is now 35% on motor number 2
motorSpeed(1, 19); //The Aev speed is now 19% on motor number 1
goFor(2); //The Aev runs for 2.0 seconds
motorSpeed(2, 19); //The Aev speed is now 19% on motor number 2
goFor(2); //The Aev runs for 2.0 seconds
celerate(4, 19, 0, 3); //The Aev accelerated from 19% to 0% on all the motors for 3.0 seconds
brake(4); //Power stopped on all the motors

Lab 2 Program
motorSpeed(4, 25);    // The Aev speed is now 25% on all the motors
goFor(2);  // The Aev runs for 2.0 seconds
motorSpeed(4, 20);  // The Aev speed is now 20% on all the motors
goToAbsolutePosition(295.38);  // The ardruino went to mark 295.38
reverse(4);  // The Aev is now moving backwards
motorSpeed(4, 30);  // The Aev speed is now 30% on all the motors
goFor(1.5);  // The Aev runs for 1.5 seconds
brake(4);  // Power stopped on all the motors

Lab 3 program

celerate(4,0, 25,3);  // The Aev accelerated from 0% to 25% on all the motors for 3.0 seconds
goFor(1);  // The Aev runs for 1.0 seconds
motorSpeed(4, 20);  // The Aev speed is now 20% on all the motors
goFor(2);  // The Aev runs for 2.0 seconds
reverse(4);  // The Aev is now moving backwards
motorSpeed(4, 25);  // The Aev speed is now 25% on all the motors
goFor(2);  // The Aev runs for 2.0 seconds
brake(4);  // Power stopped on all the motors