made the usb reading code higher priority
diff --git a/frc971/input/gyro_sensor_receiver.cc b/frc971/input/gyro_sensor_receiver.cc
index 5f0ce57..374268e 100644
--- a/frc971/input/gyro_sensor_receiver.cc
+++ b/frc971/input/gyro_sensor_receiver.cc
@@ -139,7 +139,7 @@
} // namespace frc971
int main() {
- ::aos::Init();
+ ::aos::Init(frc971::USBReceiver::kRelativePriority);
::frc971::GyroSensorReceiver receiver;
while (true) {
receiver.RunIteration();
diff --git a/frc971/input/usb_receiver.h b/frc971/input/usb_receiver.h
index a0c645a..0b0dd60 100644
--- a/frc971/input/usb_receiver.h
+++ b/frc971/input/usb_receiver.h
@@ -18,6 +18,10 @@
void RunIteration();
+ // The relative priority that tasks doing this should get run at (ie what to
+ // pass to ::aos::Init(int)).
+ static const int kRelativePriority = 5;
+
protected:
GyroBoardData *data() { return &data_; }