Drivetrain replayer now has the gyro.
Change-Id: Ica3630eb65c11992f61d7bf719361cddd87fa95b
diff --git a/y2014/control_loops/drivetrain/replay_drivetrain.cc b/y2014/control_loops/drivetrain/replay_drivetrain.cc
index 26209fa..091d992 100644
--- a/y2014/control_loops/drivetrain/replay_drivetrain.cc
+++ b/y2014/control_loops/drivetrain/replay_drivetrain.cc
@@ -2,6 +2,7 @@
#include "aos/linux_code/init.h"
#include "y2014/control_loops/drivetrain/drivetrain.q.h"
+#include "frc971/queues/gyro.q.h"
// Reads one or more log files and sends out all the queue messages (in the
// correct order and at the correct time) to feed a "live" drivetrain process.
@@ -16,6 +17,9 @@
::aos::controls::ControlLoopReplayer<::frc971::control_loops::DrivetrainQueue>
replayer(&::frc971::control_loops::drivetrain_queue, "drivetrain");
+
+ replayer.AddDirectQueueSender("wpilib_interface.Gyro", "sending",
+ ::frc971::sensors::gyro_reading);
for (int i = 1; i < argc; ++i) {
replayer.ProcessFile(argv[i]);
}