Go to Post However, I do expect something truthful to come out of some of Dave's posts. - Karibou [more]
Home
Go Back   Chief Delphi > Technical > Programming > C/C++
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 19-02-2011, 22:45
SuperBK's Avatar
SuperBK SuperBK is offline
Registered User
AKA: BrianK
FRC #1225 (Amperage Robotics)
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 2006
Location: Henersonville, NC
Posts: 358
SuperBK is just really niceSuperBK is just really niceSuperBK is just really niceSuperBK is just really nice
Encoder resolution to PidController, tuning

Using an encoder with the PidController class (for the first time) to control our arm position. We are using a gearbox from previous year's that has the US Digital encoder on the output shaft of the gearbox. That means that we aren't getting very many counts, only 360 per revolution. I set it to 4x mode when creating the encoder object and GetRaw() gives me the 4x count, but it looks like it uses the "regular" count to calcuate distance. Yes, I know I can set the distance per pulse to any scaling I want, but it's calculating it off the reguar not the 4x count, giving me less resolution. The encoder is passed to the PidController class with its source type set to "distance". My question is does this sound like I'm getting as much resolution as I can"?

I don't think its enough resolution because we can't seem to get it tuned to be very stable. Any tuning advice / tips? We are using the analog inputs on the driver's station to set Kp and KI (with scaling of course)

Also, the jaguar controlling it will fault if our full arm assembly is installed. That means its going over current right? Tomorrow we are going to change sprockets to gear it down some.

Thanks,
Brian
__________________
Brian K
Team 1225 Robotics Mentor

Last edited by SuperBK : 20-02-2011 at 10:58. Reason: Meant to say "tuning" in the title.
Reply With Quote
  #2   Spotlight this post!  
Unread 20-02-2011, 00:30
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,113
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 resolution to PidController, turning

In LabVIEW at least, the Distance output of the Encoder Get vi changes in increments of one-quarter of the distance per count. You're getting all the resolution possible.

For tuning, note that the LabVIEW PID function works with the "academic form" of PID. That means that the I and D numbers are actually time values, not gains. A larger value has a smaller/slower effect on the output.
Reply With Quote
Reply


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


All times are GMT -5. The time now is 03:05.

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