diff --git a/wpilibcExamples/src/main/cpp/examples/SwerveControllerCommand/cpp/RobotContainer.cpp b/wpilibcExamples/src/main/cpp/examples/SwerveControllerCommand/cpp/RobotContainer.cpp index 8aed4ad8ddc..459561d9f59 100644 --- a/wpilibcExamples/src/main/cpp/examples/SwerveControllerCommand/cpp/RobotContainer.cpp +++ b/wpilibcExamples/src/main/cpp/examples/SwerveControllerCommand/cpp/RobotContainer.cpp @@ -38,9 +38,9 @@ RobotContainer::RobotContainer() { // Multiply by max speed to map the joystick unitless inputs to // actual units. This will map the [-1, 1] to [max speed backwards, // max speed forwards], converting them to actual units. - m_driverController.GetLeftY() * kMaxSpeed, - m_driverController.GetLeftX() * kMaxSpeed, - m_driverController.GetRightX() * kMaxAngularSpeed, false); + m_driverController.GetLeftY() * AutoConstants::kMaxSpeed, + m_driverController.GetLeftX() * AutoConstants::kMaxSpeed, + m_driverController.GetRightX() * AutoConstants::kMaxAngularSpeed, false); }, {&m_drive})); }