#include <velMathFactory.hpp>
|
| static VelMath | create (double iticksPerRev, QTime isampleTime=0_ms, const std::shared_ptr< Logger > &ilogger=Logger::getDefaultLogger()) |
| | Velocity math helper.
|
| |
| static std::unique_ptr< VelMath > | createPtr (double iticksPerRev, QTime isampleTime=0_ms, const std::shared_ptr< Logger > &ilogger=Logger::getDefaultLogger()) |
| | Velocity math helper.
|
| |
| static VelMath | create (double iticksPerRev, std::unique_ptr< Filter > ifilter, QTime isampleTime=0_ms, const std::shared_ptr< Logger > &ilogger=Logger::getDefaultLogger()) |
| | Velocity math helper.
|
| |
| static std::unique_ptr< VelMath > | createPtr (double iticksPerRev, std::unique_ptr< Filter > ifilter, QTime isampleTime=0_ms, const std::shared_ptr< Logger > &ilogger=Logger::getDefaultLogger()) |
| | Velocity math helper.
|
| |
Definition at line 12 of file velMathFactory.hpp.
◆ create() [1/2]
Velocity math helper.
Calculates filtered velocity. Throws a std::invalid_argument exception if iticksPerRev is zero. Averages the last two readings.
- Parameters
-
| iticksPerRev | The number of ticks per revolution. |
| isampleTime | The minimum time between samples. |
| ilogger | The logger this instance will log to. |
◆ create() [2/2]
Velocity math helper.
Calculates filtered velocity. Throws a std::invalid_argument exception if iticksPerRev is zero.
- Parameters
-
| iticksPerRev | The number of ticks per revolution. |
| ifilter | The filter used for filtering the calculated velocity. |
| isampleTime | The minimum time between samples. |
| ilogger | The logger this instance will log to. |
◆ createPtr() [1/2]
| static std::unique_ptr< VelMath > okapi::VelMathFactory::createPtr |
( |
double |
iticksPerRev, |
|
|
QTime |
isampleTime = 0_ms, |
|
|
const std::shared_ptr< Logger > & |
ilogger = Logger::getDefaultLogger() |
|
) |
| |
|
static |
Velocity math helper.
Calculates filtered velocity. Throws a std::invalid_argument exception if iticksPerRev is zero. Averages the last two readings.
- Parameters
-
| iticksPerRev | The number of ticks per revolution. |
| isampleTime | The minimum time between samples. |
| ilogger | The logger this instance will log to. |
◆ createPtr() [2/2]
| static std::unique_ptr< VelMath > okapi::VelMathFactory::createPtr |
( |
double |
iticksPerRev, |
|
|
std::unique_ptr< Filter > |
ifilter, |
|
|
QTime |
isampleTime = 0_ms, |
|
|
const std::shared_ptr< Logger > & |
ilogger = Logger::getDefaultLogger() |
|
) |
| |
|
static |
Velocity math helper.
Calculates filtered velocity. Throws a std::invalid_argument exception if iticksPerRev is zero.
- Parameters
-
| iticksPerRev | The number of ticks per revolution. |
| ifilter | The filter used for filtering the calculated velocity. |
| isampleTime | The minimum time between samples. |
| ilogger | The logger this instance will log to. |
The documentation for this class was generated from the following file: