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 | |
Austin Schuh | 55a13dc | 2019-01-27 22:39:03 -0800 | [diff] [blame] | 10 | Superstructure::Superstructure(::aos::EventLoop *event_loop, |
| 11 | const ::std::string &name) |
| 12 | : aos::controls::ControlLoop<SuperstructureQueue>(event_loop, name) {} |
Tyler Chatow | e51334a | 2019-01-20 16:58:16 -0800 | [diff] [blame] | 13 | |
| 14 | void Superstructure::RunIteration( |
| 15 | const SuperstructureQueue::Goal *unsafe_goal, |
| 16 | const SuperstructureQueue::Position *position, |
| 17 | SuperstructureQueue::Output *output, |
| 18 | SuperstructureQueue::Status *status) { |
| 19 | (void)unsafe_goal; |
| 20 | (void)position; |
| 21 | (void)output; |
| 22 | (void)status; |
| 23 | |
| 24 | if (WasReset()) { |
| 25 | LOG(ERROR, "WPILib reset, restarting\n"); |
| 26 | } |
| 27 | } |
| 28 | |
| 29 | } // namespace superstructure |
| 30 | } // namespace control_loops |
Austin Schuh | 55a13dc | 2019-01-27 22:39:03 -0800 | [diff] [blame] | 31 | } // namespace y2019 |