AEV Performance Test Codes

Performance Test 1 – Code

 

motorSpeed(4,30);  //Initialize both motors at 30% power

goFor(3.1);      // Run code from previous line for 3.1 seconds

motorSpeed(4,0); //Initialize both motors at 0% power

goFor(1);        //Run code from previous line for 1 second

reverse(4);    //Reverse the polarity of the motors

motorSpeed(4,35);//Initialize both motors at 35% power

goFor(0.4);      //Run the code from the previous line for 0.4 seconds

reverse(4);      //Reverse the polarity of the motors

motorSpeed(4,0); //Initialize both motors at 0% motor

goFor(10);       //Run code from the previous line for 10 seconds

motorSpeed(4,25);//Initialize both motors at 25% power

goFor(3);        //Run the code from the previous line for 3 seconds

 

Performance Test 2 – Code

 

reverse(4);     // Reverse the polarity of the motors

motorSpeed(4,35);  //Initialize both motors at 35% power

goFor(4.95);       //Run code from the previous line for 4.95 seconds

motorSpeed(4,0);   //Initialize both motors at 0% power

goFor(1.2);        //Run code from previous line for 1.2 seconds

reverse(4);        //Reverse the polarity of the motors

motorSpeed(4,35);  //Initialize both motors at 35% power

goFor(.8);         //Run the code from the previous line for 0.8 seconds

reverse(4);       //Reverse the polarity of the motors

motorSpeed(4,0); //Initialize both motors at 0% power

goFor(8);       //Run the code from the previous line for 8 seconds

motorSpeed(4,30);  //Initialize both motors at 30% power

goFor(4.3);        //Run the code from the previous line for 4.3 seconds

motorSpeed(4,0);   //Initialize both motors at 0% power

goFor(12);         //Run the code from the previous line for 12 seconds

reverse(4);        //Reverse the polarity of the motors

motorSpeed(4,50);//Initialize both motors at 50% power

goFor(3);          //Run the code from the previous line for 3 seconds

 

Final Performance Test (Single Caboose) – Code

reverse(4);              //Reverse Polarity of the motors  

motorSpeed(4,35);             //Initialize both motors at 35% power

goToAbsolutePosition(230); //Run code from previous line until 230 marks

motorSpeed(4,0);          // Initialize both motors at 0% power

goToAbsolutePosition(295); //Run code from previous line until 295 marks

reverse(4);               //Reverse polarity of motors

motorSpeed(4,35);         //Initialize both motors at 35% power

goFor(0.6);               //Run code from previous line for 0.6 seconds

reverse(4);               // reverse polarity of motors

goFor(8);                 //Run code from previous line for 8 seconds

motorSpeed(4,35);         //Initialize both motors at 35% power

goToAbsolutePosition(405); //Run code from previous line until 405 marks

motorSpeed(4,0);          //Initialize both motors at 0% power

goFor(10);                // Run code from previous line for 10 seconds

reverse(4);               //Reverse polarity

motorSpeed(4,45);         //Initialize both motors at 45% power

goToAbsolutePosition(467); // run code from previous line until 467 marks

motorSpeed(4,0);          //Initialize both motors at 0% power

goToAbsolutePosition(415); //Run code from previous line until 415 marks

reverse(4);               // reverse polarity of the motors

motorSpeed(4,50);         //Initialize both motors at 50% power

goFor(1.3);               //Run code from previous line for 1.3 seconds

reverse(4);               //Reverse polarity of the motors

motorSpeed(4,0);          //Initialize both motors at 0% power

goFor(9);                 //run line from previous code for 9 seconds

motorSpeed(4,45);         //Initialize both motors at 45% power

goToAbsolutePosition(265); //Run code from previous line until 265 marks

motorSpeed(4,0);       //Initialize both motors at 0% power   

goToAbsolutePosition(100); //Run code from previous line until 100 marks

reverse(4);               //reverse polarity of the motors

motorSpeed(4,50);         //Initialize both motors at 50% power

goFor(1.6);               //Run code from previous line for 1.6 seconds

 

Final Performance Test (Double Caboose) – Code

reverse(4);              //Reverse Polarity of the motors

motorSpeed(4,35);             //Initialize both motors at 35% power

goToAbsolutePosition(230); //Run code from previous line until 230 marks

motorSpeed(4,0);          // Initialize both motors at 0% power

goToAbsolutePosition(295); //Run code from previous line until 295 marks

reverse(4);               //Reverse polarity of motors

motorSpeed(4,35);         //Initialize both motors at 35% power

goFor(0.6);               //Run code from previous line for 0.6 seconds

reverse(4);               // reverse polarity of motors

goFor(8);                 //Run code from previous line for 8 seconds

motorSpeed(4,35);         //Initialize both motors at 35% power

goToAbsolutePosition(405); //Run code from previous line until 405 marks

motorSpeed(4,0);          //Initialize both motors at 0% power

goFor(10);                // Run code from previous line for 10 seconds

reverse(4);               //Reverse polarity

motorSpeed(4,55);         //Initialize both motors at 45% power

goToAbsolutePosition(467); // run code from previous line until 467 marks

motorSpeed(4,0);          //Initialize both motors at 0% power

goToAbsolutePosition(415); //Run code from previous line until 415 marks

reverse(4);               // reverse polarity of the motors

motorSpeed(4,60);         //Initialize both motors at 50% power

goFor(1.3);               //Run code from previous line for 1.3 seconds

reverse(4);               //Reverse polarity of the motors

motorSpeed(4,0);          //Initialize both motors at 0% power

goFor(9);                 //run line from previous code for 9 seconds

motorSpeed(4,55);         //Initialize both motors at 45% power

goToAbsolutePosition(265); //Run code from previous line until 265 marks

motorSpeed(4,0);       //Initialize both motors at 0% power

goToAbsolutePosition(100); //Run code from previous line until 100 marks

reverse(4);               //reverse polarity of the motors

motorSpeed(4,60);         //Initialize both motors at 50% power

goFor(1.6);               //Run code from previous line for 1.6 seconds