Class evam::SimpleSmoothDecor¶
template <class TMotor, unsigned short N>
ClassList > evam > SimpleSmoothDecor
Decorator applying a simple moving average (sliding window) filter. More...
#include <evamSimpleSmoothDecor.h>
Inherits the following classes: TMotor
Public Functions¶
| Type | Name |
|---|---|
| void | Go (signed short value) Set the target control value. |
| SimpleSmoothDecor (Args... args) |
Detailed Description¶
SimpleAverageDecor has no runtime parameters besides N. This decorator does not own a heartbeat; it only transforms the value. Wrap it with SampledDecor to get periodic output:
Template parameters:
TMotorBase motor class (must implement Go(signed short))NWindow size (number of values to average). Must be >= 1.
Public Functions Documentation¶
function Go¶
Set the target control value.
inline void evam::SimpleSmoothDecor::Go (
signed short value
)
Parameters:
valueTarget control value, range -1000..1000
function SimpleSmoothDecor¶
template<typename... Args>
inline evam::SimpleSmoothDecor::SimpleSmoothDecor (
Args... args
)
The documentation for this class was generated from the following file src/evamSimpleSmoothDecor.h