This example shows one way of compensating for differences in steering for a robot moving in a straight line. By taking the difference in rotation between the two motors and multiplying by a gain, the program accounts for variations in motor distance.

|