View Single Post
  #4   Spotlight this post!  
Unread 09-02-2007, 00:16
Matt Krass's Avatar
Matt Krass Matt Krass is offline
"Old" and Cranky. Get off my lawn!
AKA: Dark Ages
FRC #0263 (Sachem Aftershock)
Team Role: Mentor
 
Join Date: Oct 2002
Rookie Year: 2002
Location: Long Island, NY
Posts: 1,187
Matt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond repute
Send a message via AIM to Matt Krass
Re: OI potentiometer for controlling turret

I agree with Jamie, sensors, sensors, sensors, very important, for your robot to do anything more intelligent than blindly firing motors it needs information. Also, shameless plug, in my signature is a paper on PID control theory, and lots of examples, and common pitfalls and some tricks, let me know if you use it and if its any help!

In reply to kaszeta's post, what you've described is a P loop only, there is no ID control in that, see the formulas in my paper for further examples of that control.
With just P you're either going to under or overshoot a lot, and it will probably slip more because small errors won't generate a significant output. Also I would never ever recommend starting with such a high gain, you're just asking for something to snap around at full speed, but you did remember to include a speed limiter sanity check after, so it's not really a problem, but you won't see anything other than 64 in either direction until you have a really tiny error, which means more than likely an overshoot.
__________________
Matt Krass
If I suggest something to try and fix a problem, and you don't understand what I mean, please PM me!

I'm a FIRST relic of sorts, I remember when we used PBASIC and we got CH Flightsticks in the KoP. In my day we didn't have motorized carts, we pushed our robots uphill, both ways! (Houston 2003!)

Last edited by Matt Krass : 09-02-2007 at 00:40. Reason: Additional comment