blob: e87ef6e79f3bbcf8ec37e76151ab5fff48cc6730 [file] [log] [blame]
Tyler Chatowe51334a2019-01-20 16:58:16 -08001#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
6namespace y2019 {
7namespace control_loops {
8namespace superstructure {
9
Austin Schuh55a13dc2019-01-27 22:39:03 -080010Superstructure::Superstructure(::aos::EventLoop *event_loop,
11 const ::std::string &name)
12 : aos::controls::ControlLoop<SuperstructureQueue>(event_loop, name) {}
Tyler Chatowe51334a2019-01-20 16:58:16 -080013
14void 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 Schuh55a13dc2019-01-27 22:39:03 -080031} // namespace y2019