Tyler Chatow | e51334a | 2019-01-20 16:58:16 -0800 | [diff] [blame] | 1 | #include "y2019/control_loops/superstructure/superstructure.h" |
| 2 | |
| 3 | #include "aos/controls/control_loops.q.h" |
| 4 | #include "frc971/control_loops/control_loops.q.h" |
| 5 | |
| 6 | namespace y2019 { |
| 7 | namespace control_loops { |
| 8 | namespace superstructure { |
| 9 | |
| 10 | Superstructure::Superstructure( |
| 11 | SuperstructureQueue *superstructure_queue) |
| 12 | : aos::controls::ControlLoop<SuperstructureQueue>( |
| 13 | superstructure_queue) {} |
| 14 | |
| 15 | void Superstructure::RunIteration( |
| 16 | const SuperstructureQueue::Goal *unsafe_goal, |
| 17 | const SuperstructureQueue::Position *position, |
| 18 | SuperstructureQueue::Output *output, |
| 19 | SuperstructureQueue::Status *status) { |
| 20 | (void)unsafe_goal; |
| 21 | (void)position; |
| 22 | (void)output; |
| 23 | (void)status; |
| 24 | |
| 25 | if (WasReset()) { |
| 26 | LOG(ERROR, "WPILib reset, restarting\n"); |
| 27 | } |
| 28 | } |
| 29 | |
| 30 | } // namespace superstructure |
| 31 | } // namespace control_loops |
| 32 | } // namespace y2019 |