Performance Test 2

For performance test two, the team was asked to run the AEV on the track to the gate, wait the same seven seconds, continue on to the end of the track, connect to the caboose gently, and then reverse the AEV with the caboose attached. This test proved extremely difficult for the team. The team was not able to complete this test, even though they attempted many different trials. The AEV design was changed for this test, and an extra arm with a metal 90 degree bracket was attached to the end of the AEV in order to pick up the caboose. This added extra weight to the AEV, so the code had to be changed from performance test one. The AEV had a difficult time making it up the ramp to get to the gate. Multiple trials were tested with the code being changed, but the results were always inconsistent. The AEV would either make it too far and run into the gate, or it would not make it to the gate at all. The team thought this was because the battery was running out of power, so they attempted to switch out the battery and the same thing kept happening. The code was not changed in between some runs, and the results were still extremely inconsistent. With time running out, team N decided to use the code they had for the graded test. The AEV ran into the gate every time and did not make it past the gate to attempt to pick up the caboose. Time restraints were an enormous limitation for team N with both performance tests. It was difficult to test and change the code as needed with very limited time. Also, with so many other teams trying to test the AEV on the track, team N had to wait in line to test the code which took up a lot of time.

 Performance Test 2 Code

//BEFORE STOP SIGN 1st:

reverse(4); //makes motors go the right way

motorSpeed(4,27); //sets speed to 27%

goFor(5.9); //goes for 5.9 seconds

brake(4); //causes coasting before stop sign

goFor(1); //causes coasting before stop sign

 

//STOPPING FOR STOP SIGN 1st:

reverse(4); //reverses all motors to brake AEV

motorSpeed(4,31); //sets motor speed to 31%

goFor(1); //reverses the motors to stop for 1 seconds

brake(4); //brakes motors

motorSpeed(4,0); //sets all motor speed to 0%

goFor(10); //keeps AEV stopped for 10 seconds in gate

 

//AFTER STOP SIGN 1st:

reverse(4); //makes motors go the right way

 

motorSpeed(4,25); //sets speed to 25%

goFor(4.15); //makes all motors go for 4.15 seconds

brake(4); //stops all motors

goFor(5); //coasts to caboose for 5 seconds

 

reverse(4); //reverse all motors

motorSpeed(4,40); //all motors to 40%

goFor(4); //go for 4 seconds