|
Re: Encoder+PID = How make robot going straight
If your goal is to make the robot go straight, and you're using Arcade drive, then it is probably easiest to put the closed-loop control on the turn input rather than on the individual motor outputs. You can either use a gyro as Chris suggests, or use the difference of the left and right encoders to tell you how much the robot thinks it has turned.
|