Quote:
Originally Posted by PriyankP
I was thinking of putting on two encoders to get the base to stop within 6 inches of the target distance without overshooting and without travelling slowly. Not sure if that's possible yet because we don't have encoders on the base yet but I would imagine I'll need I and D. The biggest problem that I'll have is momentum because I plan on running the auto at close to full speed.
If you don't mind, can you please send me the code that has to do with your base? I'm sure I can learn from it as I can't find many resources that explain the concepts. :O
|
Chiefdelphi has a number of helpful post on PID, for starters:
http://www.chiefdelphi.com/media/papers/1823
Is there any reason you can't overshoot? Fast speed to wall, then slowly backing up 6 inches may be better, unless it smashes your arm or something. Don't forget, you have 15 seconds, consistent even if slow is better than inconsistent and fast.
Hope that helps a bit.