Add status data for line follow drivetrain
Change-Id: I6eb64c2896b73e443ffb7f8a11370494ef54debf
diff --git a/frc971/control_loops/drivetrain/drivetrain.q b/frc971/control_loops/drivetrain/drivetrain.q
index 66e9c32..74be414 100644
--- a/frc971/control_loops/drivetrain/drivetrain.q
+++ b/frc971/control_loops/drivetrain/drivetrain.q
@@ -57,6 +57,18 @@
float right_velocity;
};
+// For logging state of the line follower.
+struct LineFollowLogging {
+ // Whether we are currently freezing target choice.
+ bool frozen;
+ // Whether we currently have a target.
+ bool have_target;
+ // Absolute position of the current goal.
+ float x;
+ float y;
+ float theta;
+};
+
queue_group DrivetrainQueue {
implements aos.control_loops.ControlLoop;
@@ -184,6 +196,7 @@
GearLogging gear_logging;
CIMLogging cim_logging;
TrajectoryLogging trajectory_logging;
+ LineFollowLogging line_follow_logging;
};
queue Goal goal;