20 #define START_ROBOT_CLASS(_ClassName_) \
22 if (!HAL_Initialize(0)) { \
23 std::cerr << "FATAL ERROR: HAL could not be initialized" << std::endl; \
26 HAL_Report(HALUsageReporting::kResourceType_Language, \
27 HALUsageReporting::kLanguage_CPlusPlus); \
28 static _ClassName_ robot; \
29 std::printf("\n********** Robot program starting **********\n"); \
30 robot.StartCompetition(); \
50 virtual void StartCompetition() = 0;
bool IsEnabled() const
Determine if the Robot is currently enabled.
Definition: RobotBase.cpp:54
bool IsAutonomous() const
Determine if the robot is currently in Autonomous mode.
Definition: RobotBase.cpp:67
bool IsDisabled() const
Determine if the Robot is currently disabled.
Definition: RobotBase.cpp:60
Provide access to the network communication data to / from the Driver Station.
Definition: DriverStation.h:28
bool IsNewDataAvailable() const
Indicates if new data is available from the driver station.
Definition: RobotBase.cpp:88
bool IsOperatorControl() const
Determine if the robot is currently in Operator Control mode.
Definition: RobotBase.cpp:74
Implement a Robot Program framework.
Definition: RobotBase.h:42
bool IsTest() const
Determine if the robot is currently in Test mode.
Definition: RobotBase.cpp:81
RobotBase()
Constructor for a generic robot program.
Definition: RobotBase.cpp:34