Class evam::SampledDecor¶
template <class TMotor>
ClassList > evam > SampledDecor
Decorator that owns the heartbeat and periodically drives TMotor. More...
#include <evamSampledDecor.h>
Inherits the following classes: eva::Heartbeat, TMotor
Public Functions¶
| Type | Name |
|---|---|
| void | Go (signed short value) Set the target control value. |
| SampledDecor () |
|
| SampledDecor (Args... args) |
Protected Functions¶
| Type | Name |
|---|---|
| void | onHeartbeat () override |
Detailed Description¶
SampledDecor stores the target value and, on every heartbeat, forwards it to TMotor::Go(). Any filter decorators wrapped inside transform the value in their own Go() before it reaches the motor.
Usage: SampledDecor<SimpleSmoothDecor<MyMotor, 5>> a;
Template parameters:
TMotorWrapped class (must implement Go(signed short))
Public Functions Documentation¶
function Go¶
Set the target control value.
inline void evam::SampledDecor::Go (
signed short value
)
Parameters:
valueTarget control value, range -1000..1000
function SampledDecor [1/2]¶
inline evam::SampledDecor::SampledDecor ()
function SampledDecor [2/2]¶
template<typename... Args>
inline evam::SampledDecor::SampledDecor (
Args... args
)
Protected Functions Documentation¶
function onHeartbeat¶
inline void evam::SampledDecor::onHeartbeat () override
The documentation for this class was generated from the following file src/evamSampledDecor.h