LightLib
PROS library for VEX V5: EKF/MCL localization, RAMSETE path following, high-level chassis API
Loading...
Searching...
No Matches
configurableTimeUtilFactory.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
10namespace okapi {
16 public:
17 ConfigurableTimeUtilFactory(double iatTargetError = 50,
18 double iatTargetDerivative = 5,
19 const QTime &iatTargetTime = 250_ms);
20
27 TimeUtil create() override;
28
29 private:
30 double atTargetError;
31 double atTargetDerivative;
32 QTime atTargetTime;
33};
34} // namespace okapi
A TimeUtilFactory that supplies the SettledUtil parameters passed in the constructor to every new Tim...
ConfigurableTimeUtilFactory(double iatTargetError=50, double iatTargetDerivative=5, const QTime &iatTargetTime=250_ms)
TimeUtil create() override
Creates a TimeUtil with the SettledUtil parameters specified in the constructor by delegating to Time...
Utility class for holding an AbstractTimer, AbstractRate, and SettledUtil together in one class since...
Definition timeUtil.hpp:18