|
|||||||||
| 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 float |
currE
current error |
protected float |
eSum
the sum of all errors so far |
protected float |
goal
set the controller's goal |
protected float |
lastE
last error |
| Constructor Summary | |
|---|---|
Controller()
|
|
| Method Summary | |
|---|---|
protected float |
deltaE()
Get the difference between the current error and the last error. |
void |
setGoal(float 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 float goal
protected float eSum
protected float currE
protected float lastE
| Constructor Detail |
|---|
public Controller()
| Method Detail |
|---|
public void setGoal(float newGoal)
newGoal - the new goal for the controllerprotected float deltaE()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||