From 1f79f54c87a53b841c36ba943e081c27a879837d Mon Sep 17 00:00:00 2001 From: Jack Nelson Date: Wed, 24 Jan 2024 09:14:41 -0500 Subject: [PATCH] final --- src/main/java/frc/robot/subsystems/DriveSubsystem.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/frc/robot/subsystems/DriveSubsystem.java b/src/main/java/frc/robot/subsystems/DriveSubsystem.java index 0df830e..f87e370 100644 --- a/src/main/java/frc/robot/subsystems/DriveSubsystem.java +++ b/src/main/java/frc/robot/subsystems/DriveSubsystem.java @@ -415,7 +415,7 @@ public void setWheelVelocities(DifferentialDriveWheelSpeeds speeds) { // in meters, use averageDistance() to get average distance traveled, as an offset to set this // function. - public void driveToPosition(double NewPosition) { + public void driveToPosition(final double NewPosition) { m_backLeftPIDController.setReference( NewPosition, CANSparkBase.ControlType.kPosition, DriveConstants.kDrivetrainPositionPIDSlot); m_backRightPIDController.setReference(