Go to Post Great teams derive from great mentors. - Barry Bonzack [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
 
Thread Tools Rate Thread Display Modes
  #1   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
  #2   Spotlight this post!  
Unread 12-02-2007, 14:57
kaszeta's Avatar
kaszeta kaszeta is offline
Registered User
FRC #0095 (Grasshoppers)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2002
Location: Lebanon, NH
Posts: 334
kaszeta is a glorious beacon of lightkaszeta is a glorious beacon of lightkaszeta is a glorious beacon of lightkaszeta is a glorious beacon of lightkaszeta is a glorious beacon of light
Re: OI potentiometer for controlling turret

Quote:
Originally Posted by Matt Krass View Post
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.
Yeah, I should've been clear that the example I gave is P-only code (the code I lifted it from was a full PID loop, but I figure it was best to leave some of it for the reader to implement themselves).
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Best source for a potentiometer? railerobotics Electrical 20 28-11-2007 22:24
Turret or No Turret? Leo 1529 Technical Discussion 5 16-01-2006 15:47
Code for use of a potentiometer wonderdog5 Programming 2 06-11-2002 23:15
Code for use of a potentiometer wonderdog5 OCCRA 2 06-11-2002 23:15
Code for Potentiometer wonderdog5 Programming 4 06-11-2002 15:19


All times are GMT -5. The time now is 04:51.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi