Reflectance Sensors

// Run motors one and two at 25% for 2 seconds

 motorSpeed(4,25);

 goFor(2);

 

 // Run motors one and two at 20% for 144 inches

 motorSpeed(4,20);

 goToAbsolutePosition(295);

 

 // Reverse motors one and two.

 reverse(4);

 

 // Run motors one and two at 30% for 1.5 seconds

 motorSpeed(4,30);

 goFor(1.5);

 

 // Brake motors one and two

 brake(4);