]> git.taranathan.com Git - FRC2026.git/commitdiff
still need stuff
authoreileha <eileenhan369@gmail.com>
Wed, 4 Feb 2026 01:12:26 +0000 (17:12 -0800)
committereileha <eileenhan369@gmail.com>
Wed, 4 Feb 2026 01:12:26 +0000 (17:12 -0800)
src/main/java/frc/robot/subsystems/Intake/Intake.java

index e74deea3ba2d310e4a419d0b55733ac89fafa4d5..64261fe505ffe06c17b9209655594cf8970c320d 100644 (file)
@@ -28,6 +28,8 @@ public class Intake extends SubsystemBase {
         leftMotor = new TalonFX(0);
         pid = new PIDController(0, 0, 0);
 
+    
+
     }
 
     public void periodic() {
@@ -35,7 +37,7 @@ public class Intake extends SubsystemBase {
         double motorPosition = getPosition();
         double currentPosition = Units.rotationsToRadians(motorPosition/gearRatio);
         double power = pid.calculate(currentPosition);
-       
+       // THIS IS THE WRONG MOTOR
         rollerMotor.set(MathUtil.clamp(power, -1, 1));
     }
 
@@ -44,8 +46,7 @@ public class Intake extends SubsystemBase {
     }
 
     public void setPosition(double position) {
-
-
+        this.position = position;
     }
 
     public double getPosition(){
@@ -61,6 +62,8 @@ public class Intake extends SubsystemBase {
     public void extend() {
        setPosition(maxExtension);
 
+
+
     }
 
     public void retract(){