#include <mc_filter/StationaryOffset.h>
Public Member Functions | |
StationaryOffset (double dt, double timeConstant, const VectorT &initValue=VectorT::Zero()) | |
void | update (const VectorT &value) |
const VectorT & | eval () const |
void | reset (const VectorT &initValue) |
double | timeConstant () const |
void | timeConstant (double T) |
void | saturation (double limit) |
Remove stationary offset from an input signal.
Expects VectorT to act as a vector (typically Eigen::Vector3d), supporting:
|
inline |
Constructor.
dt | Time in [s] between two readings. |
timeConstant | Length of recent-past window used to evaluate the stationary offset. |
initValue | Initial value of the input signal. |
|
inline |
Get output value where the stationary offset has been filtered.
|
inline |
Reset everything to an initial value
initValue | Initial value from which to restart the filter. |
|
inline |
Set output saturation; disable by providing a negative value.
limit | Output will saturate between -limit and +limit. |
|
inline |
Get time constant of the filter.
|
inline |
Update time constant.
T | New time constant of the filter. |
|
inline |
Update input signal value.
value | New value. |