#include <MovingSpeed.h>
|
| EventCfg (float acceleration, float maxVelocity, uint32_t resetTimeout) |
|
| EventCfg (float acceleration, float maxVelocity, uint32_t resetTimeout, float delta) |
|
◆ EventCfg() [1/2]
UTILS::MOVING_SPEED::EventCfg::EventCfg |
( |
float | acceleration, |
|
|
float | maxVelocity, |
|
|
uint32_t | resetTimeout ) |
|
inline |
- Parameters
-
acceleration | Acceleration in pixels per second (px/sec) |
maxVelocity | Max movement speed, it depends from acceleration value, a suitable value could be (acceleration value)*3. Set 0 to disable it |
resetTimeout | Resets acceleration speed if idle for specified millisecs |
◆ EventCfg() [2/2]
UTILS::MOVING_SPEED::EventCfg::EventCfg |
( |
float | acceleration, |
|
|
float | maxVelocity, |
|
|
uint32_t | resetTimeout, |
|
|
float | delta ) |
|
inline |
- Parameters
-
acceleration | Acceleration in pixels per second (px/sec) |
maxVelocity | Max movement speed, it depends from acceleration value, a suitable value could be (acceleration value)*3. Set 0 to disable it |
resetTimeout | Resets acceleration speed if idle for specified millisecs |
delta | Specify the minimal increment step, and the result of distance value will be rounded by delta. Set 0 to disable it |
◆ m_acceleration
float UTILS::MOVING_SPEED::EventCfg::m_acceleration |
◆ m_delta
float UTILS::MOVING_SPEED::EventCfg::m_delta {0} |
◆ m_maxVelocity
float UTILS::MOVING_SPEED::EventCfg::m_maxVelocity |
◆ m_resetTimeout
uint32_t UTILS::MOVING_SPEED::EventCfg::m_resetTimeout |
The documentation for this struct was generated from the following file: