LightLib
PROS library for VEX V5: EKF/MCL localization, RAMSETE path following, high-level chassis API
Loading...
Searching...
No Matches
timeUtilFactory.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 {
12 public:
13 virtual ~TimeUtilFactory() = default;
14
18 virtual TimeUtil create();
19
24
28 static TimeUtil withSettledUtilParams(double iatTargetError = 50,
29 double iatTargetDerivative = 5,
30 const QTime &iatTargetTime = 250_ms);
31};
32} // namespace okapi
virtual ~TimeUtilFactory()=default
static TimeUtil withSettledUtilParams(double iatTargetError=50, double iatTargetDerivative=5, const QTime &iatTargetTime=250_ms)
Creates a TimeUtil with custom SettledUtil params.
virtual TimeUtil create()
Creates a default TimeUtil.
static TimeUtil createDefault()
Creates a default TimeUtil.
Utility class for holding an AbstractTimer, AbstractRate, and SettledUtil together in one class since...
Definition timeUtil.hpp:18