Exercise 2 Code

This code was used to test the reflectance sensors on the AEV.

motorSpeed(4,25); // run all motors at 25% for 2 seconds 
motorSpeed(4,20); // run all motors at 20%
goToAbsolutePosition(296); // continue the current state until AEV reaches absolute position 296
reverse(4); // reverse all motors
motorSpeed(4,30); // run all motors at 30% for 1.5 seconds
brake(4); // brake all motors