Class evam::SlewRateDecor¶
template <class TMotor, unsigned short tMaxStepPerTick>
ClassList > evam > SlewRateDecor
Decorator that limits maximum rate of change (slew rate / ramp). More...
#include <evamSlewRateDecor.h>
Inherits the following classes: TMotor
Public Functions¶
| Type | Name |
|---|---|
| void | Go (signed short value) Set the target control value. |
| SlewRateDecor () |
|
| SlewRateDecor (SlewRateConfig config, Args... args) |
|
| unsigned short | getMaxStep () const |
| void | setMaxStep (unsigned short maxStep) |
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))tMaxStepPerTickDefault maximum change per tick (1..1000). Default: 50
Public Functions Documentation¶
function Go¶
Set the target control value.
inline void evam::SlewRateDecor::Go (
signed short value
)
Parameters:
valueTarget control value, range -1000..1000
function SlewRateDecor [1/2]¶
inline evam::SlewRateDecor::SlewRateDecor ()
function SlewRateDecor [2/2]¶
template<typename... Args>
inline evam::SlewRateDecor::SlewRateDecor (
SlewRateConfig config,
Args... args
)
function getMaxStep¶
inline unsigned short evam::SlewRateDecor::getMaxStep () const
function setMaxStep¶
inline void evam::SlewRateDecor::setMaxStep (
unsigned short maxStep
)
The documentation for this class was generated from the following file src/evamSlewRateDecor.h