|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavaclient2.extra.Controller
public abstract class Controller
Abstract controller implementation. Used as a starting point for P, PI, PD, PID controllers.
Field Summary | |
---|---|
protected double |
currE
current error |
protected double |
eSum
the sum of all errors so far |
protected double |
goal
set the controller's goal |
protected double |
lastE
last error |
Constructor Summary | |
---|---|
Controller()
|
Method Summary | |
---|---|
protected double |
deltaE()
Get the difference between the current error and the last error. |
void |
setGoal(double newGoal)
Set a new goal for the controller. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected double goal
protected double eSum
protected double currE
protected double lastE
Constructor Detail |
---|
public Controller()
Method Detail |
---|
public void setGoal(double newGoal)
newGoal
- the new goal for the controllerprotected double deltaE()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |