LightLib
PROS library for VEX V5: EKF/MCL localization, RAMSETE path following, high-level chassis API
Loading...
Searching...
No Matches
rate.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
8
#include "
okapi/api/util/abstractRate.hpp
"
9
10
namespace
okapi
{
11
class
Rate
:
public
AbstractRate
{
12
public
:
13
Rate
();
14
21
void
delay
(QFrequency ihz)
override
;
22
29
void
delayUntil
(QTime itime)
override
;
30
37
void
delayUntil
(uint32_t ims)
override
;
38
39
protected
:
40
std::uint32_t
lastTime
{0};
41
};
42
}
// namespace okapi
abstractRate.hpp
okapi::AbstractRate
Definition
abstractRate.hpp:13
okapi::Rate
Definition
rate.hpp:11
okapi::Rate::delayUntil
void delayUntil(uint32_t ims) override
Delay the current task until ims milliseconds have passed.
okapi::Rate::delayUntil
void delayUntil(QTime itime) override
Delay the current task until itime has passed.
okapi::Rate::delay
void delay(QFrequency ihz) override
Delay the current task such that it runs at the given frequency.
okapi::Rate::lastTime
std::uint32_t lastTime
Definition
rate.hpp:40
okapi::Rate::Rate
Rate()
okapi
Definition
chassisController.hpp:16
include
okapi
impl
util
rate.hpp
Generated by
1.9.8