Ravago Jones | 486de80 | 2021-05-19 20:47:55 -0700 | [diff] [blame^] | 1 | #ifndef Y2021_BOT3_CONTROL_LOOPS_SUPERSTRUCTURE_SUPERSTRUCTURE_H_ |
| 2 | #define Y2021_BOT3_CONTROL_LOOPS_SUPERSTRUCTURE_SUPERSTRUCTURE_H_ |
| 3 | |
| 4 | #include "aos/controls/control_loop.h" |
| 5 | #include "aos/events/event_loop.h" |
| 6 | #include "y2021_bot3/constants.h" |
| 7 | #include "y2021_bot3/control_loops/superstructure/superstructure_goal_generated.h" |
| 8 | #include "y2021_bot3/control_loops/superstructure/superstructure_output_generated.h" |
| 9 | #include "y2021_bot3/control_loops/superstructure/superstructure_position_generated.h" |
| 10 | #include "y2021_bot3/control_loops/superstructure/superstructure_status_generated.h" |
| 11 | |
| 12 | namespace y2021_bot3 { |
| 13 | namespace control_loops { |
| 14 | namespace superstructure { |
| 15 | |
| 16 | class Superstructure |
| 17 | : public ::aos::controls::ControlLoop<Goal, Position, Status, Output> { |
| 18 | public: |
| 19 | explicit Superstructure(::aos::EventLoop *event_loop, |
| 20 | const ::std::string &name = "/superstructure"); |
| 21 | |
| 22 | protected: |
| 23 | virtual void RunIteration(const Goal *unsafe_goal, const Position *position, |
| 24 | aos::Sender<Output>::Builder *output, |
| 25 | aos::Sender<Status>::Builder *status) override; |
| 26 | |
| 27 | private: |
| 28 | DISALLOW_COPY_AND_ASSIGN(Superstructure); |
| 29 | }; |
| 30 | |
| 31 | } // namespace superstructure |
| 32 | } // namespace control_loops |
| 33 | } // namespace y2021_bot3 |
| 34 | |
| 35 | #endif // Y2021_BOT3_CONTROL_LOOPS_SUPERSTRUCTURE_SUPERSTRUCTURE_H_ |