Sabina Davis | edf8947 | 2020-02-17 15:27:37 -0800 | [diff] [blame] | 1 | #ifndef Y2020_CONTROL_LOOPS_SHOOTER_SHOOTER_H_ |
| 2 | #define Y2020_CONTROL_LOOPS_SHOOTER_SHOOTER_H_ |
| 3 | |
| 4 | #include "aos/controls/control_loop.h" |
| 5 | #include "frc971/control_loops/state_feedback_loop.h" |
| 6 | #include "y2020/control_loops/superstructure/shooter/flywheel_controller.h" |
| 7 | #include "y2020/control_loops/superstructure/superstructure_goal_generated.h" |
| 8 | #include "y2020/control_loops/superstructure/superstructure_output_generated.h" |
| 9 | #include "y2020/control_loops/superstructure/superstructure_position_generated.h" |
| 10 | #include "y2020/control_loops/superstructure/superstructure_status_generated.h" |
| 11 | |
| 12 | namespace y2020 { |
| 13 | namespace control_loops { |
| 14 | namespace superstructure { |
| 15 | namespace shooter { |
| 16 | |
| 17 | // Handles all flywheels together. |
| 18 | class Shooter { |
| 19 | public: |
| 20 | Shooter(); |
| 21 | |
| 22 | flatbuffers::Offset<ShooterStatus> RunIteration( |
| 23 | const ShooterGoal *goal, const ShooterPosition *position, |
| 24 | flatbuffers::FlatBufferBuilder *fbb, OutputT *output); |
| 25 | |
| 26 | private: |
| 27 | FlywheelController finisher_, accelerator_left_, accelerator_right_; |
| 28 | |
| 29 | DISALLOW_COPY_AND_ASSIGN(Shooter); |
| 30 | }; |
| 31 | |
| 32 | } // namespace shooter |
| 33 | } // namespace superstructure |
| 34 | } // namespace control_loops |
| 35 | } // namespace y2020 |
| 36 | |
| 37 | #endif // Y2020_CONTROL_LOOPS_SHOOTER_SHOOTER_H_ |