View Single Post
  #6   Spotlight this post!  
Unread 30-12-2005, 13:55
Rickertsen2 Rickertsen2 is offline
Umm Errr...
None #1139 (Chamblee Gear Grinders)
Team Role: Alumni
 
Join Date: Dec 2002
Rookie Year: 2002
Location: ATL
Posts: 1,421
Rickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant future
Send a message via AIM to Rickertsen2 Send a message via Yahoo to Rickertsen2
Re: Autonomous using encoders

the best algorithm is PID(search these forums). If you want something simpler then just P:

*Subtract the left side encoder count from the right side. I you get a negative value then you are
veering to the left. Positive means you are going to the right

*multiply this number by some constant.

*Add the result to the left wheel. subtract it from the right wheel. Make sure nothing overflows.

This is not the best algorithm but it helps. One year, we found that for whatever reason one side of our robot was slightly more powerful than the other. We simply multiplied the more powerful side by a constant and it almost completely eliminated the problem without any feedback at all.
__________________
1139 Alumni