]> git.taranathan.com Git - FRC2026.git/commitdiff
oops
authoriefomit <timofei.stem@gmail.com>
Sat, 28 Mar 2026 00:29:40 +0000 (17:29 -0700)
committeriefomit <timofei.stem@gmail.com>
Sat, 28 Mar 2026 00:29:40 +0000 (17:29 -0700)
src/main/java/frc/robot/subsystems/Intake/Intake.java

index 7904f3bf3268404917c9ba2fdb47a80643e3c0bd..ab4ded6821b22a511eb1d0f88f12e7fa3f7fb3e1 100644 (file)
@@ -239,7 +239,7 @@ public class Intake extends SubsystemBase implements IntakeIO{
      * @param setpoint in inches
      */
     public void setPosition(double setpoint) {
-        double motorRotations = inchesToRotations(setpoint);
+        double motorRotations = -inchesToRotations(setpoint);
         rightMotor.setControl(voltageRequest.withPosition(motorRotations));
         leftMotor.setControl(voltageRequest.withPosition(motorRotations));
 
@@ -304,7 +304,7 @@ public class Intake extends SubsystemBase implements IntakeIO{
     /**
      * Reverses the intake roller
      */
-    public void spinReverse(){
+    public void spinReverse() {
         spin(-IntakeConstants.SPEED);
     }