Class evam::AdaptiveSmoothDecor¶
template <class TMotor, unsigned short tMinTimeConstantTicks, unsigned short tMaxTimeConstantTicks>
ClassList > evam > AdaptiveSmoothDecor
Decorator with adaptive smoothing based on input rate of change. More...
#include <evamAdaptiveSmoothDecor.h>
Inherits the following classes: TMotor
Public Functions¶
| Type | Name |
|---|---|
| AdaptiveSmoothDecor () |
|
| AdaptiveSmoothDecor (AdaptiveSmoothConfig config, Args... args) |
|
| unsigned short | GetMaxTimeConstantTicks () const |
| unsigned short | GetMinTimeConstantTicks () const |
| void | Go (signed short value) Set the target control value. |
| void | SetMaxTimeConstantTicks (unsigned short value) |
| void | SetMinTimeConstantTicks (unsigned short value) |
Detailed Description¶
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))tMinTimeConstantTicksDefault minimum time constant. Default: 1tMaxTimeConstantTicksDefault maximum time constant. Default: 15
Public Functions Documentation¶
function AdaptiveSmoothDecor [1/2]¶
inline evam::AdaptiveSmoothDecor::AdaptiveSmoothDecor ()
function AdaptiveSmoothDecor [2/2]¶
template<typename... Args>
inline evam::AdaptiveSmoothDecor::AdaptiveSmoothDecor (
AdaptiveSmoothConfig config,
Args... args
)
function GetMaxTimeConstantTicks¶
inline unsigned short evam::AdaptiveSmoothDecor::GetMaxTimeConstantTicks () const
function GetMinTimeConstantTicks¶
inline unsigned short evam::AdaptiveSmoothDecor::GetMinTimeConstantTicks () const
function Go¶
Set the target control value.
inline void evam::AdaptiveSmoothDecor::Go (
signed short value
)
Parameters:
valueTarget control value, range -1000..1000
function SetMaxTimeConstantTicks¶
inline void evam::AdaptiveSmoothDecor::SetMaxTimeConstantTicks (
unsigned short value
)
function SetMinTimeConstantTicks¶
inline void evam::AdaptiveSmoothDecor::SetMinTimeConstantTicks (
unsigned short value
)
The documentation for this class was generated from the following file src/evamAdaptiveSmoothDecor.h