]> git.taranathan.com Git - FRC2026.git/commitdiff
incompelte
authorSaara21 <113394225+Saara21@users.noreply.github.com>
Wed, 4 Feb 2026 00:17:39 +0000 (16:17 -0800)
committerSaara21 <113394225+Saara21@users.noreply.github.com>
Wed, 4 Feb 2026 00:17:39 +0000 (16:17 -0800)
src/main/java/frc/robot/subsystems/Intake/Intake.java [new file with mode: 0644]

diff --git a/src/main/java/frc/robot/subsystems/Intake/Intake.java b/src/main/java/frc/robot/subsystems/Intake/Intake.java
new file mode 100644 (file)
index 0000000..00b27f1
--- /dev/null
@@ -0,0 +1,50 @@
+package frc.robot.subsystems.Intake;
+
+import com.ctre.phoenix6.hardware.TalonFX;
+
+import edu.wpi.first.wpilibj.smartdashboard.SmartDashboard;
+import edu.wpi.first.wpilibj2.command.InstantCommand;
+import edu.wpi.first.wpilibj2.command.SubsystemBase;
+import com.ctre.phoenix.motorcontrol.ControlMode;
+
+
+public class Intake extends SubsystemBase {
+    private TalonFX rollerMotor; 
+    private TalonFX rightMotor;
+    private TalonFX leftMotor; //invert this one
+    private double position;
+    private double maxExtension;
+    private double current;
+
+    public Intake() {
+       // set actual IDs
+        rollerMotor = new TalonFX(0);
+        rightMotor = new TalonFX(0);
+        leftMotor = new TalonFX(0);
+
+    }
+    public void periodic() {
+        // current threshold + PID stuff
+    }
+    public void simulationPeriodic(){
+
+    }
+    public void setPosition(double position) {
+
+
+    }
+    public void spin(double speed) {
+        rollerMotor.set(0.2);
+    }
+
+
+    public void extend() {
+       setPosition(maxExtension);
+
+    }
+    public void retract(){
+        setPosition(0);
+        
+    }
+    
+}