Template Class Ramp¶
Defined in File ramp.hpp
Class Documentation¶
-
template<typename ValueUnit, typename TimeUnit>
class Ramp¶ Dimensional wrap for taproot ramp
Public Functions
- inline mockable void setTarget (ValueUnit target)
- inline mockable ValueUnit getTarget () const
- inline mockable void setSpeed (double speed)
How many units per time unit the ramp moves towards the target value
This should be positive`
This is a float to allow ramp to use primitive types
- inline mockable void update ()
- inline mockable ValueUnit getValue () const
- inline mockable bool isTargetReached () const