Code for Final Performance Test

Room 224

void myCode()
{
//—————————————————————————————-
// myCode();
//
// This is the tab where the programming of your vehicle operation is done.
// Tab _00_AEV_key_words contains a compiled list of functions/subroutines used for vehicle
// operation.
//
// Note:
// (1) After running your AEV do not turn the AEV off, connect the AEV to a computer, or
// push the reset button on the Arduino. There is a 13 second processing period. In
// post processing, data is stored and battery recuperation takes place.
// (2) Time, current, voltage, total marks, position traveled are recorded approximately
// every 60 milliseconds. This may vary depending on the vehicles operational tasks.
// It takes approximately 35-40 milliseconds for each recording. Thus when programming,
// code complexity may not be beneficial.
// (3) Always comment your code. Debugging will be quicker and easier to do and will
// especially aid the instructional team in helping you.
//—————————————————————————————-

// Program between here——————————————————————-

celerate(4,0,50,2);

motorSpeed(4,50);
goFor(1.32);

brake(4);
reverse(4);
celerate(4,0,60,3);

brake(4);
goFor(8.5);
reverse(4);
celerate(4,0,40,2);

motorSpeed(4,40);
goFor(1.14);
brake(4);
goFor(1.5);
reverse(4);

brake(4);
goFor(10);
celerate(4,0,65,2);

motorSpeed(4,65);
goFor(3.38);
brake(4);
goFor(1);
reverse(4);
celerate(4,0,65,2);
motorSpeed(4,65);
goFor(0.5);
reverse(4);

brake(4);
goFor(8.5);
celerate(4,0,65,2);
motorSpeed(4,65);
goFor(3);
brake(4);
goFor(1);
reverse(4);
celerate(4,0,50,3);

 

// And here——————————————————————————–

} // DO NOT REMOVE. end of void myCode()

 

 

Room 308

void myCode()
{
//—————————————————————————————-
// myCode();
//
// This is the tab where the programming of your vehicle operation is done.
// Tab _00_AEV_key_words contains a compiled list of functions/subroutines used for vehicle
// operation.
//
// Note:
// (1) After running your AEV do not turn the AEV off, connect the AEV to a computer, or
// push the reset button on the Arduino. There is a 13 second processing period. In
// post processing, data is stored and battery recuperation takes place.
// (2) Time, current, voltage, total marks, position traveled are recorded approximately
// every 60 milliseconds. This may vary depending on the vehicles operational tasks.
// It takes approximately 35-40 milliseconds for each recording. Thus when programming,
// code complexity may not be beneficial.
// (3) Always comment your code. Debugging will be quicker and easier to do and will
// especially aid the instructional team in helping you.
//—————————————————————————————-

// Program between here——————————————————————-

celerate(4,0,48,2);

motorSpeed(4,48);
goFor(1.27);

brake(4);
reverse(4);
celerate(4,0,55,3);

brake(4);
goFor(8.5);
reverse(4);
celerate(4,0,40,2);

motorSpeed(4,40);
goFor(1);
brake(4);
goFor(1.7);
reverse(4);
celerate(4,0,20,2);

brake(4);
goFor(9);
celerate(4,0,65,2);

motorSpeed(4,65);
goFor(3.34);

brake(4);
reverse(4);
celerate(4,0,60,3);
brake(4);
goFor(10);
reverse(4);
celerate(4,0,65,2);

motorSpeed(4,65);
goFor(3);
brake(4);
goFor(1.5);
reverse(4);
celerate(4,0,60,3);

// And here——————————————————————————–

} // DO NOT REMOVE. end of void myCode()