Performance Test 2

Goal:  Send AEV up an incline, stop at the gate for at least seven seconds, and proceed through the gate. Reach the loading zone, attach to the caboose, and pull out of the loading zone.

Left: Power vs. Time

Right: Power vs. Distance

Overview of Performance Test: For this performance test, the group decided power braking would be the best way to ensure a safe connection with the caboose. While travelling down an incline to the loading zone, the Arduino applies a small, continuous power brake in order to decrease the momentum of the AEV as it neared the caboose. This appeared to work successfully – the AEV was able to reach the caboose without without causing any safety violations. Following this, it was determined that due to the weight of the AEV, the magnet connection was often inconsistent. In order to fix this, the group added a T-shaped magnet to serve as an additional connection. With this addition, the group decided to test using the new code and results were determined to be a resounding success.

Code:

reverse(1); 

motorSpeed(4,29); 

goToRelativePosition(-175); 

brake(4); 

goFor(13); 

motorSpeed(4,21); 

goFor(5); 

reverse(4); 

motorSpeed(4,20); 

goFor(4); 

brake(4); 

goFor(5); 

motorSpeed(4,50); 

goFor(5);