Interface for filters.
More...
#include <Filter.h>
|
| Filter (std::shared_ptr< PIDSource > source) |
|
void | SetPIDSourceType (PIDSourceType pidSource) override |
| Set which parameter you are using as a process control variable. More...
|
|
PIDSourceType | GetPIDSourceType () const |
|
double | PIDGet () override=0 |
|
virtual double | Get () const =0 |
| Returns the current filter estimate without also inserting new data as PIDGet() would do. More...
|
|
virtual void | Reset ()=0 |
| Reset the filter state.
|
|
PIDSourceType | GetPIDSourceType () const |
|
|
PIDSourceType | m_pidSource = PIDSourceType::kDisplacement |
|
virtual double frc::Filter::Get |
( |
| ) |
const |
|
pure virtual |
Returns the current filter estimate without also inserting new data as PIDGet() would do.
- Returns
- The current filter estimate
Implemented in frc::LinearDigitalFilter.
double Filter::PIDGetSource |
( |
| ) |
|
|
protected |
Calls PIDGet() of source.
- Returns
- Current value of source
void Filter::SetPIDSourceType |
( |
PIDSourceType |
pidSource | ) |
|
|
overridevirtual |
Set which parameter you are using as a process control variable.
- Parameters
-
pidSource | An enum to select the parameter. |
Reimplemented from frc::PIDSource.
The documentation for this class was generated from the following files:
- shared/include/Filters/Filter.h
- shared/src/Filters/Filter.cpp