implement reading the gyro over SPI
Change-Id: Iee3041f45e5df9f079a60eb48726659d88513417
diff --git a/frc971/input/input.gyp b/frc971/input/input.gyp
index 69340d3..8473fe5 100644
--- a/frc971/input/input.gyp
+++ b/frc971/input/input.gyp
@@ -27,7 +27,7 @@
'<(AOS)/common/common.gyp:time',
'<(AOS)/common/util/util.gyp:log_interval',
- '<(DEPTH)/frc971/queues/queues.gyp:queues',
+ '<(DEPTH)/frc971/queues/queues.gyp:gyro',
'<(DEPTH)/frc971/control_loops/drivetrain/drivetrain.gyp:drivetrain_loop',
'<(DEPTH)/frc971/frc971.gyp:constants',
'<(DEPTH)/frc971/autonomous/autonomous.gyp:auto_queue',
@@ -58,6 +58,7 @@
'<(DEPTH)/frc971/control_loops/claw/claw.gyp:claw_loop',
'<(DEPTH)/frc971/control_loops/shooter/shooter.gyp:shooter_loop',
'<(AOS)/common/controls/controls.gyp:output_check',
+ '<(DEPTH)/frc971/queues/queues.gyp:gyro',
],
},
],
diff --git a/frc971/input/joystick_reader.cc b/frc971/input/joystick_reader.cc
index 9156509..771a06c 100644
--- a/frc971/input/joystick_reader.cc
+++ b/frc971/input/joystick_reader.cc
@@ -12,7 +12,7 @@
#include "frc971/control_loops/drivetrain/drivetrain.q.h"
#include "frc971/constants.h"
-#include "frc971/queues/other_sensors.q.h"
+#include "frc971/queues/gyro.q.h"
#include "frc971/autonomous/auto.q.h"
#include "frc971/control_loops/claw/claw.q.h"
#include "frc971/control_loops/shooter/shooter.q.h"
diff --git a/frc971/input/sensor_receiver.cc b/frc971/input/sensor_receiver.cc
index f5b2047..1cdf201 100644
--- a/frc971/input/sensor_receiver.cc
+++ b/frc971/input/sensor_receiver.cc
@@ -11,6 +11,7 @@
#include "frc971/control_loops/drivetrain/drivetrain.q.h"
#include "frc971/queues/other_sensors.q.h"
+#include "frc971/queues/gyro.q.h"
#include "frc971/constants.h"
#include "frc971/queues/to_log.q.h"
#include "frc971/control_loops/shooter/shooter.q.h"