Simple discrete IIR lowpass filter.
More...
#include <filters.h>
|
| | Lowpass (float gain=1, float sampleTime=0.1, float timeconstant=1.0) |
| | Constucts and initializes the Lowpass filter.
|
| |
| float | updateState (float u) |
| | Update the filter state. Must be called with the constant period Ts.
|
| |
| void | resetState (void) |
| | Resets the filter state x to 0.0.
|
| |
|
| float | K |
| | Filter gain.
|
| |
| float | Ts |
| | Filter sampling time.
|
| |
| float | tau |
| | Filter timeconstant.
|
| |
| float | x |
| | Filter state.
|
| |
Simple discrete IIR lowpass filter.
◆ Lowpass()
| bioscara_joint_firmware::Lowpass::Lowpass |
( |
float |
gain = 1, |
|
|
float |
sampleTime = 0.1, |
|
|
float |
timeconstant = 1.0 |
|
) |
| |
|
inline |
Constucts and initializes the Lowpass filter.
- Parameters
-
| gain | |
| sampleTime | |
| timeconstant | |
◆ resetState()
| void bioscara_joint_firmware::Lowpass::resetState |
( |
void |
| ) |
|
|
inline |
Resets the filter state x to 0.0.
◆ updateState()
| float bioscara_joint_firmware::Lowpass::updateState |
( |
float |
u | ) |
|
|
inline |
Update the filter state. Must be called with the constant period Ts.
- Returns
- The updated filter state
| float bioscara_joint_firmware::Lowpass::K |
|
protected |
◆ tau
| float bioscara_joint_firmware::Lowpass::tau |
|
protected |
◆ Ts
| float bioscara_joint_firmware::Lowpass::Ts |
|
protected |
| float bioscara_joint_firmware::Lowpass::x |
|
protected |
The documentation for this class was generated from the following file: