Convert StatusLight to event loops.
Change-Id: Ifc8a497b0f30c0ce1624b005791859eef2d9912f
diff --git a/y2018/control_loops/superstructure/superstructure.h b/y2018/control_loops/superstructure/superstructure.h
index 3d1a6af..8ab6bf3 100644
--- a/y2018/control_loops/superstructure/superstructure.h
+++ b/y2018/control_loops/superstructure/superstructure.h
@@ -4,10 +4,12 @@
#include <memory>
#include "aos/controls/control_loop.h"
+#include "aos/events/event-loop.h"
#include "frc971/control_loops/state_feedback_loop.h"
#include "y2018/control_loops/superstructure/arm/arm.h"
#include "y2018/control_loops/superstructure/intake/intake.h"
#include "y2018/control_loops/superstructure/superstructure.q.h"
+#include "y2018/status_light.q.h"
namespace y2018 {
namespace control_loops {
@@ -32,6 +34,11 @@
control_loops::SuperstructureQueue::Status *status) override;
private:
+ // Sends the status light message for the 3 colors provided.
+ void SendColors(float red, float green, float blue);
+
+ ::aos::Sender<::y2018::StatusLight> status_light_sender_;
+
intake::IntakeSide intake_left_;
intake::IntakeSide intake_right_;
arm::Arm arm_;