Go to Post If a team wants to cheat then it does nothing but give them a bad cloud hanging over their own heads. - Jon K. [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
  #14   Spotlight this post!  
Unread 05-02-2012, 00:30
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?

On second thought, we are having issues implementing one of the methods you recommended earlier. We have decided to use the

Output= Output +...

method, but out issue is, how do we get the value of the PIDControllor without setting a PIDOutput? could we just make an output object, feed it to the controller, and further ignore it?

Jaguar leftJ=new Jaguar(1,1);
Encoder leftE= new Encoder(1,1,1,2);
PIDOutput myoutput;
PIDController leftController= new PIDController(P,I,D, leftE, myoutput);

double speed=0;

{
speed=speed+ leftController.get();
leftJ.set(speed);
}


excluding ofcourse some details, but this is the general idea.
__________________
"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