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) |
|
| void | Go (signed short value) Set the target control value. |
| unsigned short | getMaxTimeConstantTicks () const |
| unsigned short | getMinTimeConstantTicks () const |
| 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 Go¶
Set the target control value.
inline void evam::AdaptiveSmoothDecor::Go (
signed short value
)
Parameters:
valueTarget control value, range -1000..1000
function getMaxTimeConstantTicks¶
inline unsigned short evam::AdaptiveSmoothDecor::getMaxTimeConstantTicks () const
function getMinTimeConstantTicks¶
inline unsigned short evam::AdaptiveSmoothDecor::getMinTimeConstantTicks () const
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