29 std::unique_ptr<Filter> ifilter,
31 std::unique_ptr<AbstractTimer> iloopDtTimer,
42 virtual QAngularSpeed
step(
double inewPos);
64 QAngularSpeed
vel{0_rpm};
66 QAngularAcceleration
accel{0.0};
static std::shared_ptr< Logger > getDefaultLogger()
std::unique_ptr< AbstractTimer > loopDtTimer
virtual QAngularSpeed getVelocity() const
virtual QAngularAcceleration getAccel() const
virtual void setTicksPerRev(double iTPR)
Sets ticks per revolution (or whatever units you are using).
std::shared_ptr< Logger > logger
std::unique_ptr< Filter > filter
QAngularAcceleration accel
VelMath(double iticksPerRev, std::unique_ptr< Filter > ifilter, QTime isampleTime, std::unique_ptr< AbstractTimer > iloopDtTimer, std::shared_ptr< Logger > ilogger=Logger::getDefaultLogger())
Velocity math helper.
virtual QAngularSpeed step(double inewPos)
Calculates the current velocity and acceleration.