Go to Post Hey, I know that kid.... wait he is my son! - Mike Martus [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #7   Spotlight this post!  
Unread 04-02-2012, 08:08
techkid86's Avatar
techkid86 techkid86 is offline
Magic Programer
FRC #3044 (0xBE4)
Team Role: Alumni
 
Join Date: Jan 2011
Rookie Year: 2010
Location: ballston spa
Posts: 58
techkid86 is an unknown quantity at this point
Re: PID drive paramiters?

what's the business end of the motor connected to?
the motor is connected to a gear box, where it interacts with the wheel. the encoder and wheel are in a 1:1 ratio, but the motor spindle to encoder is not. i'll find out what it is if you need it.


are you getting a proper signal from the encoder? e.g. if you run the motor open loop and just read the encoder value, does it change linearly with the open-loop voltage supplied to the motor?

we thoroughly tested the encoder before hand, and all funtions seemed to work fine.



I assume you mean from from WPIlib?
yes


0 and .3 what? fraction of 100% command?
yes. as the jags take an input value of -1-1, i assumed that that was the what the setpoint was supposed to be in.


you need to scale the encoder signal so that it corresponds to the setpoint. otherwise the PID cannot form a proper error signal.

ok, how would i find out what that is? I assume that that is the SetDistancePerPulse function?

anything else?
__________________
"you can build a perfect machine out of imperfect parts" -Urza
Reply With Quote
 


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 13:08.

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