Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Java (http://www.chiefdelphi.com/forums/forumdisplay.php?f=184)
-   -   PID drive paramiters? (http://www.chiefdelphi.com/forums/showthread.php?t=101904)

Ether 05-02-2012 01:07

Re: PID drive paramiters?
 
1 Attachment(s)
Quote:

Originally Posted by techkid86 (Post 1120269)
On second thought, we are having issues implementing one of the methods you recommended earlier.

Which method, and what issues?


Quote:

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?
Instead of sending the PID output directly to the Jaguar, you want to intercept it, process it, and send the processed value to the Jaguar.


So if you want to add feedforward, you'd do something like this:
Code:

processed_output = PIDoutput+feedforward;

if (processed_output>1) processed_output=1;
else if (processed_output<-1) processed_output=-1;

... then send processed_output to the Jaguar.


If you want to integrate the PID output, you'd do something like this:
Code:

processed_output += K*PIDoutput;

if (processed_output>1) processed_output=1;
else if (processed_output<-1) processed_output=-1;

... then send processed_output to the Jaguar.




techkid86 05-02-2012 10:14

Re: PID drive paramiters?
 
thanks again all. ^_^ you guys are awesome!


All times are GMT -5. The time now is 13:08.

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