RaidZeroLib
Coroutine robot framework for VEX V5
Toggle main menu visibility
Loading...
Searching...
No Matches
ProsPlatform.hpp
1
#pragma once
2
#include "RaidZeroLib/api/Runtime/Platform.hpp"
3
4
namespace
rz
{
5
7
class
ProsPlatform
final :
public
Platform
{
8
public
:
9
[[nodiscard]]
Time
now
()
const override
;
10
void
sleepUntil
(
Time
time)
override
;
11
[[nodiscard]]
CompetitionMode
competitionMode
()
const override
;
12
};
13
14
}
// namespace rz
rz::Platform
What the runtime needs from the outside world: a clock, a way to wait, and the competition mode.
Definition
Platform.hpp:15
rz::ProsPlatform
Platform backed by the PROS clock, scheduler and competition status.
Definition
ProsPlatform.hpp:7
rz::ProsPlatform::sleepUntil
void sleepUntil(Time time) override
Blocks until now() >= time. Returns immediately if that time has passed.
rz::ProsPlatform::competitionMode
CompetitionMode competitionMode() const override
The mode field control is in right now.
rz::ProsPlatform::now
Time now() const override
Monotonic time.
rz::CompetitionMode
CompetitionMode
What field control (or a competition switch) currently allows the robot to do.
Definition
Platform.hpp:7
rz::Time
au::QuantityPointD< au::Seconds > Time
Definition
Units.hpp:17
rz
Definition
DriverControl.hpp:11
RaidZeroLib
impl
Pros
Runtime
ProsPlatform.hpp
Generated by
1.18.0