10 #include <hal/Notifier.h>
12 #include "frc/ErrorBase.h"
13 #include "frc/IterativeRobotBase.h"
28 static constexpr
double kDefaultPeriod = 0.02;
45 explicit TimedRobot(
double period = kDefaultPeriod);
50 HAL_NotifierHandle m_notifier{0};
53 double m_expirationTime = 0;
WPILib FRC namespace.
Definition: SPIAccelerometerSim.h:18
void StartCompetition() override
Provide an alternate "main loop" via StartCompetition().
TimedRobot(double period=kDefaultPeriod)
Constructor for TimedRobot.
Base class for most objects.
Definition: ErrorBase.h:74
TimedRobot implements the IterativeRobotBase robot program framework.
Definition: TimedRobot.h:26
double GetPeriod() const
Get the time period between calls to Periodic() functions.
IterativeRobotBase implements a specific type of robot program framework, extending the RobotBase cla...
Definition: IterativeRobotBase.h:44