2 | 2 | [[Image(walkTheLine.jpg,right,250px,margin=10)]]In the last example, we saw why robot programming is challenging: robots work in the real world where wheels slip, motors have different powers, wheels aren't inflated equally, and floors aren't perfectly level. The robot didn't go straight and didn't stop at exactly 36"; traveling in a straight line is more difficult than it sounds. In the basic Autonomous example, one wheel was turning faster than the other so the robot turned. Since the encoders were reporting this, we can modify our program to compensate. The simplest way to do this is to proportionally increase the motor power of the wheel that's going slower / reduce the power on the wheel that's going faster. |