10 #include <hal/Types.h>
11 #include <units/units.h>
12 #include <wpi/deprecated.h>
14 #include "frc/ErrorBase.h"
15 #include "frc/IterativeRobotBase.h"
30 static constexpr units::second_t kDefaultPeriod = 20_ms;
52 WPI_DEPRECATED(
"Use constructor with unit-safety instead.")
60 explicit TimedRobot(units::second_t period = kDefaultPeriod);
68 hal::Handle<HAL_NotifierHandle> m_notifier;
71 units::second_t m_expirationTime{0};
TimedRobot(double period)
Constructor for TimedRobot.
IterativeRobotBase implements a specific type of robot program framework, extending the RobotBase cla...
Definition: IterativeRobotBase.h:48
void StartCompetition() override
Provide an alternate "main loop" via StartCompetition().
Base class for most objects.
Definition: ErrorBase.h:104
void EndCompetition() override
Ends the main loop in StartCompetition().
A class that enforces constraints on the differential drive kinematics.
Definition: SPIAccelerometerSim.h:16
units::second_t GetPeriod() const
Get the time period between calls to Periodic() functions.
TimedRobot implements the IterativeRobotBase robot program framework.
Definition: TimedRobot.h:28