added gyro support
diff --git a/frc971/input/gyro_board_reader.cc b/frc971/input/gyro_board_reader.cc
index 47b61e8..dab6130 100644
--- a/frc971/input/gyro_board_reader.cc
+++ b/frc971/input/gyro_board_reader.cc
@@ -12,6 +12,7 @@
#include "frc971/control_loops/shooter/shooter_motor.q.h"
#include "frc971/input/gyro_board_data.h"
#include "gyro_board/src/libusb-driver/libusb_wrap.h"
+#include "frc971/queues/GyroAngle.q.h"
#ifndef M_PI
#define M_PI 3.14159265358979323846
@@ -22,6 +23,7 @@
using ::frc971::control_loops::angle_adjust;
using ::frc971::control_loops::shooter;
using ::frc971::control_loops::index_loop;
+using ::frc971::sensors::gyro;
namespace frc971 {
namespace {
@@ -136,6 +138,10 @@
void ProcessData(GyroBoardData *data) {
data->NetworkToHost();
+ gyro.MakeWithBuilder()
+ .angle(data->gyro_angle / 16.0 / 1000.0 / 180.0 * M_PI)
+ .Send();
+
UpdateWrappingCounter(data->top_rise_count,
&last_top_rise_count_, &top_rise_count_);
UpdateWrappingCounter(data->top_fall_count,