Allow resetting localizer via queue
We can now dynamically reset the localizer to allow, e.g., creating a
button in joystick reader that resets the robot position.
Change-Id: I4a9882b59b7efa660f496086b920e57a3231009f
diff --git a/frc971/control_loops/drivetrain/localizer.q b/frc971/control_loops/drivetrain/localizer.q
new file mode 100644
index 0000000..1ae0adc
--- /dev/null
+++ b/frc971/control_loops/drivetrain/localizer.q
@@ -0,0 +1,11 @@
+package frc971.control_loops.drivetrain;
+
+// Allows you to reset the state of the localizer to a specific position on the
+// field.
+message LocalizerControl {
+ float x; // X position, meters
+ float y; // Y position, meters
+ float theta; // heading, radians
+};
+
+queue LocalizerControl localizer_control;