Remove the final users of robot_state and joystick_state
This means we can remove them from the .q file.
Change-Id: Iefded3cf4537b2635341f3248c5f50af1534a241
diff --git a/frc971/wpilib/sensor_reader.h b/frc971/wpilib/sensor_reader.h
index 12bcf37..d14f704 100644
--- a/frc971/wpilib/sensor_reader.h
+++ b/frc971/wpilib/sensor_reader.h
@@ -4,6 +4,8 @@
#include <atomic>
#include <chrono>
+#include "aos/events/event-loop.h"
+#include "aos/robot_state/robot_state.q.h"
#include "aos/stl_mutex/stl_mutex.h"
#include "aos/time/time.h"
#include "frc971/control_loops/control_loops.q.h"
@@ -22,7 +24,7 @@
class SensorReader {
public:
- SensorReader();
+ SensorReader(::aos::EventLoop *event_loop);
virtual ~SensorReader() {}
// Updates the fast and medium encoder filter frequencies.
@@ -171,6 +173,9 @@
(2.0 * M_PI);
}
+ ::aos::EventLoop *event_loop_;
+ ::aos::Sender<::aos::RobotState> robot_state_sender_;
+
frc::DigitalGlitchFilter fast_encoder_filter_, medium_encoder_filter_;
::std::unique_ptr<frc::Encoder> drivetrain_left_encoder_,