brians | 343bc11 | 2013-02-10 01:53:46 +0000 | [diff] [blame^] | 1 | #include "WPILib/DriverStation.h" |
| 2 | #include "WPILib/RobotBase.h" |
| 3 | |
| 4 | namespace aos { |
| 5 | namespace crio { |
| 6 | |
| 7 | class ControlsManager : public RobotBase { |
| 8 | public: |
| 9 | // Gets called when it is time to register all the control loops. |
| 10 | virtual void RegisterControlLoops() = 0; |
| 11 | virtual void StartCompetition(); |
| 12 | static inline ControlsManager &GetInstance() { |
| 13 | return *static_cast<ControlsManager *>(&RobotBase::getInstance()); |
| 14 | } |
| 15 | inline DriverStation *GetDS() { |
| 16 | return m_ds; |
| 17 | } |
| 18 | }; |
| 19 | |
| 20 | } // namespace crio |
| 21 | } // namespace aos |