|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavaclient2.extra.Controller
javaclient2.extra.PIController
public class PIController
Proportional-Integral controller implementation.
Field Summary | |
---|---|
protected double |
ki
Integral constant |
protected double |
kp
Proportional constant |
Fields inherited from class javaclient2.extra.Controller |
---|
currE, eSum, goal, lastE |
Constructor Summary | |
---|---|
PIController(double Kp,
double Ki)
Constructor for PIController. |
Method Summary | |
---|---|
double |
getCommand(double currentOutput)
Calculate and return the controller's command for the controlled system. |
double |
getKi()
Get the current value of the integral constant. |
double |
getKp()
Get the current value of the proportional constant. |
void |
setKi(double newKi)
Set a new value for the integral constant. |
void |
setKp(double newKp)
Set a new value for the proportional constant. |
Methods inherited from class javaclient2.extra.Controller |
---|
deltaE, setGoal |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected double kp
protected double ki
Constructor Detail |
---|
public PIController(double Kp, double Ki)
Kp
- the proportional constantKi
- the integral constantMethod Detail |
---|
public double getCommand(double currentOutput)
currentOutput
- the current output of the system
public double getKp()
public void setKp(double newKp)
newKp
- the new value for Kppublic double getKi()
public void setKi(double newKi)
newKi
- the new value for Ki
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |