]> git.taranathan.com Git - FRC2026.git/commitdiff
u need to multiply by 12 to get same behavior as dutycycleout
authormoo <moogoesmeow123@gmail.com>
Fri, 17 Apr 2026 22:43:56 +0000 (15:43 -0700)
committermoo <moogoesmeow123@gmail.com>
Fri, 17 Apr 2026 22:43:56 +0000 (15:43 -0700)
src/main/java/frc/robot/subsystems/spindexer/Spindexer.java

index a7f5046a5a439758bdbad8f5b8892a591b2f8e38..62d7d399d89b30d23d9ae9c408c27e32bee21b6b 100644 (file)
@@ -88,8 +88,8 @@ public class Spindexer extends SubsystemBase implements SpindexerIO {
     }
 
     public void setMotorVoltages(double voltage) {
-        motorOne.setControl(new VoltageOut(voltage).withEnableFOC(true));
-        motorTwo.setControl(new VoltageOut(voltage).withEnableFOC(true));
+        motorOne.setControl(new VoltageOut(voltage * 12).withEnableFOC(true));
+        motorTwo.setControl(new VoltageOut(voltage * 12).withEnableFOC(true));
     }
 
     public void maxSpindexer() {