16 #define START_ROBOT_CLASS(_ClassName_) \
17 RobotBase *FRC_userClassFactory() \
19 return new _ClassName_(); \
22 int32_t FRC_UserProgram_StartupLibraryInit() \
24 RobotBase::startRobotTask((FUNCPTR)FRC_userClassFactory); \
41 static void setInstance(
RobotBase* robot);
56 virtual void StartCompetition() = 0;
58 static void WriteVersionString();
Watchdog & GetWatchdog()
Definition: RobotBase.cpp:79
bool IsEnabled()
Definition: RobotBase.cpp:88
bool IsNewDataAvailable()
Definition: RobotBase.cpp:133
Definition: RobotBase.h:37
RobotBase()
Definition: RobotBase.cpp:44
Definition: RobotBase.cpp:220
bool IsTest()
Definition: RobotBase.cpp:124
static void startRobotTask(FUNCPTR factory)
Definition: RobotBase.cpp:164
bool IsSystemActive()
Definition: RobotBase.cpp:69
Definition: Watchdog.h:25
virtual ~RobotBase()
Definition: RobotBase.cpp:56
static void robotTask(FUNCPTR factory, Task *task)
Definition: RobotBase.cpp:141
bool IsAutonomous()
Definition: RobotBase.cpp:106
bool IsDisabled()
Definition: RobotBase.cpp:97
bool IsOperatorControl()
Definition: RobotBase.cpp:115
Definition: DriverStation.h:21