Tyler Chatow | e51334a | 2019-01-20 16:58:16 -0800 | [diff] [blame] | 1 | #ifndef Y2019_CONTROL_LOOPS_SUPERSTRUCTURE_SUPERSTRUCTURE_H_ |
| 2 | #define Y2019_CONTROL_LOOPS_SUPERSTRUCTURE_SUPERSTRUCTURE_H_ |
| 3 | |
| 4 | #include "aos/controls/control_loop.h" |
| 5 | #include "y2019/control_loops/superstructure/superstructure.q.h" |
| 6 | |
| 7 | namespace y2019 { |
| 8 | namespace control_loops { |
| 9 | namespace superstructure { |
| 10 | |
| 11 | class Superstructure |
| 12 | : public ::aos::controls::ControlLoop<SuperstructureQueue> { |
| 13 | public: |
| 14 | explicit Superstructure( |
Austin Schuh | 55a13dc | 2019-01-27 22:39:03 -0800 | [diff] [blame^] | 15 | ::aos::EventLoop *event_loop, |
| 16 | const ::std::string &name = |
| 17 | ".y2019.control_loops.superstructure.superstructure_queue"); |
Tyler Chatow | e51334a | 2019-01-20 16:58:16 -0800 | [diff] [blame] | 18 | |
| 19 | protected: |
| 20 | virtual void RunIteration( |
| 21 | const SuperstructureQueue::Goal *unsafe_goal, |
| 22 | const SuperstructureQueue::Position *position, |
| 23 | SuperstructureQueue::Output *output, |
| 24 | SuperstructureQueue::Status *status) override; |
| 25 | |
| 26 | private: |
| 27 | |
| 28 | DISALLOW_COPY_AND_ASSIGN(Superstructure); |
| 29 | }; |
| 30 | |
| 31 | } // namespace superstructure |
| 32 | } // namespace control_loops |
| 33 | } // namespace y2019 |
| 34 | |
Austin Schuh | 55a13dc | 2019-01-27 22:39:03 -0800 | [diff] [blame^] | 35 | #endif // Y2019_CONTROL_LOOPS_SUPERSTRUCTURE_SUPERSTRUCTURE_H_ |