LightLib
PROS library for VEX V5: EKF/MCL localization, RAMSETE path following, high-level chassis API
Loading...
Searching...
No Matches
velMathFactory.hpp
Go to the documentation of this file.
1/*
2 * This Source Code Form is subject to the terms of the Mozilla Public
3 * License, v. 2.0. If a copy of the MPL was not distributed with this
4 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
5 */
6#pragma once
7
9#include <memory>
10
11namespace okapi {
13 public:
22 static VelMath create(double iticksPerRev,
23 QTime isampleTime = 0_ms,
24 const std::shared_ptr<Logger> &ilogger = Logger::getDefaultLogger());
25
34 static std::unique_ptr<VelMath>
35 createPtr(double iticksPerRev,
36 QTime isampleTime = 0_ms,
37 const std::shared_ptr<Logger> &ilogger = Logger::getDefaultLogger());
38
48 static VelMath create(double iticksPerRev,
49 std::unique_ptr<Filter> ifilter,
50 QTime isampleTime = 0_ms,
51 const std::shared_ptr<Logger> &ilogger = Logger::getDefaultLogger());
52
62 static std::unique_ptr<VelMath>
63 createPtr(double iticksPerRev,
64 std::unique_ptr<Filter> ifilter,
65 QTime isampleTime = 0_ms,
66 const std::shared_ptr<Logger> &ilogger = Logger::getDefaultLogger());
67};
68} // namespace okapi
static std::shared_ptr< Logger > getDefaultLogger()
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.