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 | |
Ravago Jones | 486de80 | 2021-05-19 20:47:55 -0700 | [diff] [blame] | 4 | #include "aos/events/event_loop.h" |
Philipp Schrader | 790cb54 | 2023-07-05 21:06:52 -0700 | [diff] [blame] | 5 | #include "frc971/control_loops/control_loop.h" |
Ravago Jones | 486de80 | 2021-05-19 20:47:55 -0700 | [diff] [blame] | 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 | |
Stephan Pleines | d99b1ee | 2024-02-02 20:56:44 -0800 | [diff] [blame^] | 12 | namespace y2021_bot3::control_loops::superstructure { |
Ravago Jones | 486de80 | 2021-05-19 20:47:55 -0700 | [diff] [blame] | 13 | |
| 14 | class Superstructure |
James Kuszmaul | 6175066 | 2021-06-21 21:32:33 -0700 | [diff] [blame] | 15 | : public ::frc971::controls::ControlLoop<Goal, Position, Status, Output> { |
Ravago Jones | 486de80 | 2021-05-19 20:47:55 -0700 | [diff] [blame] | 16 | public: |
| 17 | explicit Superstructure(::aos::EventLoop *event_loop, |
| 18 | const ::std::string &name = "/superstructure"); |
| 19 | |
| 20 | protected: |
| 21 | virtual void RunIteration(const Goal *unsafe_goal, const Position *position, |
| 22 | aos::Sender<Output>::Builder *output, |
| 23 | aos::Sender<Status>::Builder *status) override; |
| 24 | |
| 25 | private: |
| 26 | DISALLOW_COPY_AND_ASSIGN(Superstructure); |
| 27 | }; |
| 28 | |
Stephan Pleines | d99b1ee | 2024-02-02 20:56:44 -0800 | [diff] [blame^] | 29 | } // namespace y2021_bot3::control_loops::superstructure |
Ravago Jones | 486de80 | 2021-05-19 20:47:55 -0700 | [diff] [blame] | 30 | |
| 31 | #endif // Y2021_BOT3_CONTROL_LOOPS_SUPERSTRUCTURE_SUPERSTRUCTURE_H_ |