View Single Post
  #3   Spotlight this post!  
Unread 25-01-2015, 22:48
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,112
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
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.
Reply With Quote