Class evam::MedianDecor¶
template <class TMotor, unsigned short tWindowSize>
ClassList > evam > MedianDecor
Decorator that applies median filtering with fixed time base. More...
#include <evamMedianDecor.h>
Inherits the following classes: Heartbeat, TMotor
Public Functions¶
| Type | Name |
|---|---|
| void | Go (signed short aValue) |
| MedianDecor () |
|
| MedianDecor (MedianConfig config, Args... args) |
|
| void | Reset () Reset the filter buffer. |
Protected Functions¶
| Type | Name |
|---|---|
| void | onHeartbeat () override |
Detailed Description¶
Samples the input at regular intervals and applies median filtering to remove spikes and noise. Output updates at the sampling rate.
Template parameters:
MotorBase motor class (must implement Go(signed short))kWindowSizeFilter window size (odd number). Default: 5
Public Functions Documentation¶
function Go¶
inline void evam::MedianDecor::Go (
signed short aValue
)
function MedianDecor [1/2]¶
inline evam::MedianDecor::MedianDecor ()
function MedianDecor [2/2]¶
template<typename... Args>
inline evam::MedianDecor::MedianDecor (
MedianConfig config,
Args... args
)
function Reset¶
Reset the filter buffer.
inline void evam::MedianDecor::Reset ()
Protected Functions Documentation¶
function onHeartbeat¶
inline void evam::MedianDecor::onHeartbeat () override
The documentation for this class was generated from the following file src/evamMedianDecor.h