Go to Post The part I like best is your method of transfering the torque via the balls. Very elegant. - Joe Johnson [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

 
Reply
 
Thread Tools Rating: Thread Rating: 25 votes, 5.00 average. Display Modes
  #1   Spotlight this post!  
Unread 24-04-2013, 22:22
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,042
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: PID

Quote:
Originally Posted by rawrxp View Post
PID (stands for proportional, integral, and derivative) is a control loop where the feedback is used as an adjustment for the next iteration.
If your control algorithm does input/process/output, then the feedback is used as an adjustment for the present iteration.

Quote:
the sensors that you stated will give you back a current value. You can subtract your current from your setpoint to get your error.
the OP may think you are talking about amps here.

Quote:
The way that most people understand PID is thinking about it as a function graph where the x-axis is the number of iterations and the y-axis is your error (setpoint - current). Now this function (let's call it f(x)) is your basic function for your error versus iterations that is constantly growing as your PID loop continues.
The error should be decreasing, not growing, if the controller is working properly.

Quote:
You add all of these together to get a PID value to send to your motor.
True for the WPILib Java implementation, but other languages (like LabVIEW) use a different form of PID. The 2013 WPILib PID also has a feedforward term.


Quote:
Now, the proportional value is pretty self-explanatory. It decreases as the error becomes smaller or as you approach your setpoint. Thus, it gives a huge boost at the beginning and reduces its effectiveness as the error decreases. A P-only loop will result in oscillation.
Not true as an unqualified general statement. It depends on what you are controlling, and how high you crank up the gain.


Quote:
The integral term ... can "predict" where the power level will go next and try to compensate.
I think you are confusing the integral term with the derivative term.


Reply With Quote
  #2   Spotlight this post!  
Unread 25-04-2013, 00:01
Tanaythan's Avatar
Tanaythan Tanaythan is offline
Programmer
AKA: Tanay Nathan
FRC #3256 (Warriorborgs)
Team Role: Programmer
 
Join Date: Feb 2011
Rookie Year: 2010
Location: San Jose
Posts: 27
Tanaythan is an unknown quantity at this point
Re: PID

Quote:
Originally Posted by Ether View Post
I think you are confusing the integral term with the derivative term.

How I was taught PID was that the integral takes the current accumulation of the error, which could be translated into the state of the system. Thus, if you tune the I term properly, it could be properly used to correct the loop. I even heard the word "predict" when I was learning PID. Now I realize that my mentor probably meant that it was for correction rather than prediction.

Quote:
The error should be decreasing, not growing, if the controller is working properly.
My bad, I meant that the number of iterations is growing, not the error. My fault.
__________________
Tanay Nathan
Programmer
Team #3256 Warriorborgs

Last edited by Tanaythan : 25-04-2013 at 00:06.
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 10:00.

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