Skip to content

Class evam::MedianDecor

template <class TMotor, unsigned short tWindowSize>

ClassList > evam > MedianDecor

Decorator applying median filtering. More...

  • #include <evamMedianDecor.h>

Inherits the following classes: TMotor

Public Functions

Type Name
void Go (signed short value)
Set the target control value.
MedianDecor ()
MedianDecor (Args... args)

Detailed Description

Median has no runtime parameters besides the template window size. This decorator does not own a heartbeat; it only transforms the value. Wrap it with SampledDecor to get periodic output:

Template parameters:

  • TMotor Base motor class (must implement Go(signed short))
  • tWindowSize Filter window size (odd number). Default: 5

Public Functions Documentation

function Go

Set the target control value.

inline void evam::MedianDecor::Go (
    signed short value
) 

Parameters:

  • value Target control value, range -1000..1000

function MedianDecor [1/2]

inline evam::MedianDecor::MedianDecor () 

function MedianDecor [2/2]

template<typename... Args>
inline evam::MedianDecor::MedianDecor (
    Args... args
) 


The documentation for this class was generated from the following file src/evamMedianDecor.h