public static class PIDController.State extends AbstractCloneableSerializable
Constructor and Description |
---|
State()
Default constructor.
|
State(double lastErr,
double errSum)
Creates a new instance of State
|
Modifier and Type | Method and Description |
---|---|
double |
getErrSum()
Getter for errSum
|
double |
getLastErr()
Getter for lastErr
|
void |
setErrSum(double errSum)
Setter for errSum
|
void |
setLastErr(double lastErr)
Setter for lastErr
|
clone
public State()
public State(double lastErr, double errSum)
lastErr
- Last error.errSum
- Sum of all errors.public double getLastErr()
public void setLastErr(double lastErr)
lastErr
- Last error.public double getErrSum()
public void setErrSum(double errSum)
errSum
- Sum of all errors.