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)
PIDSource
setPIDSourceType
in interface PIDSource
pidSource
- An enum to select the parameter.public PIDSourceType getPIDSourceType()
PIDSource
getPIDSourceType
in interface PIDSource
public abstract double pidGet()
PIDSource
public abstract double get()
public abstract void reset()
protected double pidGetSource()