From fdc098267e06fb2e2d473f2ca29accfd145f6aed Mon Sep 17 00:00:00 2001 From: Tyler Veness Date: Fri, 16 Aug 2019 23:04:12 -0700 Subject: [PATCH] Fix compilation error in elevator trapezoid profile example (#1826) Merging #1815 broke it, then #1814 was merged before fixing the failure. --- .../main/cpp/examples/ElevatorTrapezoidProfile/cpp/Robot.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wpilibcExamples/src/main/cpp/examples/ElevatorTrapezoidProfile/cpp/Robot.cpp b/wpilibcExamples/src/main/cpp/examples/ElevatorTrapezoidProfile/cpp/Robot.cpp index 2c3c0dc812..5dbab38455 100644 --- a/wpilibcExamples/src/main/cpp/examples/ElevatorTrapezoidProfile/cpp/Robot.cpp +++ b/wpilibcExamples/src/main/cpp/examples/ElevatorTrapezoidProfile/cpp/Robot.cpp @@ -44,7 +44,7 @@ class Robot : public frc::TimedRobot { frc::Joystick m_joystick{1}; frc::Encoder m_encoder{1, 2}; frc::Spark m_motor{1}; - frc2::PIDController m_controller{1.3, 0.0, 0.7, kDt.to()}; + frc2::PIDController m_controller{1.3, 0.0, 0.7, kDt}; frc::TrapezoidProfile::Constraints m_constraints{1.75_mps, 0.75_mps_sq}; frc::TrapezoidProfile::State m_goal;