Reflectance Sensor Test Code

 

// Program between here

// Run all motors at a constant speed of 25% power for 2 seconds.
motorSpeed(4,25);
goFor(2);

// Run all motors at a constant speed of 20% to travel a total distance of 12 ft( form the starting point).
motorSpeed(4,20);
goToAbsolutePosition(295.385);

// Reverse motors
reverse(4);

// Run all motors at a constant speed of 30% power for 1.5 seconds.
motorSpeed(4,30);
goFor(1.5);

// Brake all motors
brake(4);