LightLib
PROS library for VEX V5: EKF/MCL localization, RAMSETE path following, high-level chassis API
Loading...
Searching...
No Matches
pidTunerFactory.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:
14 static PIDTuner create(const std::shared_ptr<ControllerInput<double>> &iinput,
15 const std::shared_ptr<ControllerOutput<double>> &ioutput,
16 QTime itimeout,
17 std::int32_t igoal,
18 double ikPMin,
19 double ikPMax,
20 double ikIMin,
21 double ikIMax,
22 double ikDMin,
23 double ikDMax,
24 std::int32_t inumIterations = 5,
25 std::int32_t inumParticles = 16,
26 double ikSettle = 1,
27 double ikITAE = 2,
28 const std::shared_ptr<Logger> &ilogger = Logger::getDefaultLogger());
29
30 static std::unique_ptr<PIDTuner>
31 createPtr(const std::shared_ptr<ControllerInput<double>> &iinput,
32 const std::shared_ptr<ControllerOutput<double>> &ioutput,
33 QTime itimeout,
34 std::int32_t igoal,
35 double ikPMin,
36 double ikPMax,
37 double ikIMin,
38 double ikIMax,
39 double ikDMin,
40 double ikDMax,
41 std::int32_t inumIterations = 5,
42 std::int32_t inumParticles = 16,
43 double ikSettle = 1,
44 double ikITAE = 2,
45 const std::shared_ptr<Logger> &ilogger = Logger::getDefaultLogger());
46};
47} // namespace okapi
static std::shared_ptr< Logger > getDefaultLogger()
static std::unique_ptr< PIDTuner > createPtr(const std::shared_ptr< ControllerInput< double > > &iinput, const std::shared_ptr< ControllerOutput< double > > &ioutput, QTime itimeout, std::int32_t igoal, double ikPMin, double ikPMax, double ikIMin, double ikIMax, double ikDMin, double ikDMax, std::int32_t inumIterations=5, std::int32_t inumParticles=16, double ikSettle=1, double ikITAE=2, const std::shared_ptr< Logger > &ilogger=Logger::getDefaultLogger())
static PIDTuner create(const std::shared_ptr< ControllerInput< double > > &iinput, const std::shared_ptr< ControllerOutput< double > > &ioutput, QTime itimeout, std::int32_t igoal, double ikPMin, double ikPMax, double ikIMin, double ikIMax, double ikDMin, double ikDMax, std::int32_t inumIterations=5, std::int32_t inumParticles=16, double ikSettle=1, double ikITAE=2, const std::shared_ptr< Logger > &ilogger=Logger::getDefaultLogger())