From cd6234c5fbc6cd5a55a88fb6b98ff7fc13f155e0 Mon Sep 17 00:00:00 2001 From: michael-lesirge <100492377+michael-lesirge@users.noreply.github.com> Date: Wed, 15 Jan 2025 21:21:56 -0800 Subject: [PATCH] fix unit conversion --- src/main/java/frc/robot/subsystems/drive/ModuleIOSparkMax.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/frc/robot/subsystems/drive/ModuleIOSparkMax.java b/src/main/java/frc/robot/subsystems/drive/ModuleIOSparkMax.java index ec8e536..6a816fc 100644 --- a/src/main/java/frc/robot/subsystems/drive/ModuleIOSparkMax.java +++ b/src/main/java/frc/robot/subsystems/drive/ModuleIOSparkMax.java @@ -236,7 +236,7 @@ public void setTurnVoltage(double volts) { @Override public void setDriveVelocity(double velocityRadsPerSec, double feedForwardVoltage) { driveFeedback.setReference( - Units.radiansToRotations(velocityRadsPerSec), + Units.radiansPerSecondToRotationsPerMinute(velocityRadsPerSec), ControlType.kVelocity, ClosedLoopSlot.kSlot0, feedForwardVoltage,