From b57fb0ecd2548479d452246a684051ef91e6eacc Mon Sep 17 00:00:00 2001 From: Prateek Machiraju Date: Tue, 25 Jun 2019 22:59:32 -0400 Subject: [PATCH] remove auto when type is unclear --- FalconLibraryCPP/src/mathematics/control/RamseteTracker.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/FalconLibraryCPP/src/mathematics/control/RamseteTracker.h b/FalconLibraryCPP/src/mathematics/control/RamseteTracker.h index ee42938..53cbc7e 100644 --- a/FalconLibraryCPP/src/mathematics/control/RamseteTracker.h +++ b/FalconLibraryCPP/src/mathematics/control/RamseteTracker.h @@ -10,8 +10,8 @@ class RamseteTracker : public TrajectoryTracker { TrajectoryTrackerVelocityOutput CalculateState(const TimedIterator& iterator, const Pose2d& robot_pose) const override { - const auto reference_state = iterator.CurrentState().state; - const auto error = reference_state.State().Pose().InFrameOfReferenceOf(robot_pose); + const TimedEntry reference_state = iterator.CurrentState().state; + const Pose2d error = reference_state.State().Pose().InFrameOfReferenceOf(robot_pose); const auto vd = reference_state.Velocity(); const auto wd = vd * reference_state.State().Curvature();