public abstract class Filter extends java.lang.Object implements PIDSource
| Modifier and Type | Method and Description |
|---|---|
abstract double |
get()
Returns the current filter estimate without also inserting new data as pidGet() would do.
|
PIDSourceType |
getPIDSourceType()
Get which parameter of the device you are using as a process control variable.
|
abstract double |
pidGet()
Get the result to use in PIDController.
|
protected double |
pidGetSource()
Calls PIDGet() of source.
|
abstract void |
reset()
Reset the filter state.
|
void |
setPIDSourceType(PIDSourceType pidSource)
Set which parameter of the device you are using as a process control variable.
|
public void setPIDSourceType(PIDSourceType pidSource)
PIDSourcesetPIDSourceType in interface PIDSourcepidSource - An enum to select the parameter.public PIDSourceType getPIDSourceType()
PIDSourcegetPIDSourceType in interface PIDSourcepublic abstract double pidGet()
PIDSourcepublic abstract double get()
public abstract void reset()
protected double pidGetSource()