|
Autonomous using encoders
I have a question on how other teams use encoders to control the motion of there robot in autonomous. I understand how to turn reliably and go straight for short distances, but my problem is going straight for long distances.
The difference in encoder counts between both sides of the robot builds up at the end of a long run. This is worse if the floor isn't level or the motors on one side are stronger. What do teams do with this error?
Any sample code would be appreciated.
|