added a place to check gyro status every packet
diff --git a/frc971/input/usb_receiver.h b/frc971/input/usb_receiver.h
index 509b740..fec847f 100644
--- a/frc971/input/usb_receiver.h
+++ b/frc971/input/usb_receiver.h
@@ -102,7 +102,19 @@
void Reset();
- virtual void ProcessData(const ::aos::time::Time ×tamp) = 0;
+ // These 2 are the functions for subclasses to override and do stuff in.
+ // timestamp for both of them is the time (as best as this code can determine)
+ // that the values in the packet were captured.
+ // They both have empty implementations here for subclasses that don't want to
+ // do anything in one of them.
+
+ // Gets called after each packet is received (possibly before ProcessData for
+ // the same packet).
+ virtual void PacketReceived(const ::aos::time::Time ×tamp);
+ // Gets called every 10th packet (or so) (at the right time for data for
+ // control loops to get read). PacketReceived will always be called right
+ // before this.
+ virtual void ProcessData(const ::aos::time::Time ×tamp);
const uint8_t expected_robot_id_;