Lab 04 Code

 reflectanceSensorTest(); //The AEV sensors were having difficulties running,    so this was added to check them

 reverse(4); //all motors were set in the reverse orientation so that they will propel the vehicle forward

 motorSpeed(4,30); // all motors were given 30% power

 goToRelativePosition(261); //AEV was set to go to relative position 261

 reverse(4); //All motors were set to the opposite orientation

 motorSpeed(4,15); //All motors were given 15% power

 goFor(2); //All motors were set to run for 2 seconds 

 brake(4); //All motors were braked to a stop