| Description | This example demonstrates how to control the rotation of a motor very accurately. On the front panel, the user inputs the desired position (in degrees)
of the motor. The user can also adjust the control gains, Kp and Ki
which affects the input power of the motor. Kp is a proportional gain,
it scales the difference between the motor's current position and the
desired position--this difference is known as the error. Ki is an
integral gain, it scales the total accumulated error during the
program. Play around with the gains to see what works the best.
|