RaidZeroLib
Coroutine robot framework for VEX V5
Loading...
Searching...
No Matches
ProsPlatform.hpp
1#pragma once
2#include "RaidZeroLib/api/Runtime/Platform.hpp"
3
4namespace rz {
5
7class 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
What the runtime needs from the outside world: a clock, a way to wait, and the competition mode.
Definition Platform.hpp:15
Platform backed by the PROS clock, scheduler and competition status.
Definition ProsPlatform.hpp:7
void sleepUntil(Time time) override
Blocks until now() >= time. Returns immediately if that time has passed.
CompetitionMode competitionMode() const override
The mode field control is in right now.
Time now() const override
Monotonic time.
CompetitionMode
What field control (or a competition switch) currently allows the robot to do.
Definition Platform.hpp:7
au::QuantityPointD< au::Seconds > Time
Definition Units.hpp:17
Definition DriverControl.hpp:11