]> git.taranathan.com Git - FRC2026.git/commitdiff
don't think we're gonna use this but have it just in case
authormaxwtan <100314265+MaxwellTTan20@users.noreply.github.com>
Sat, 21 Feb 2026 18:29:46 +0000 (10:29 -0800)
committermaxwtan <100314265+MaxwellTTan20@users.noreply.github.com>
Sat, 21 Feb 2026 18:29:46 +0000 (10:29 -0800)
src/main/java/frc/robot/commands/gpm/IntakeCommand.java [new file with mode: 0644]

diff --git a/src/main/java/frc/robot/commands/gpm/IntakeCommand.java b/src/main/java/frc/robot/commands/gpm/IntakeCommand.java
new file mode 100644 (file)
index 0000000..7723ed8
--- /dev/null
@@ -0,0 +1,26 @@
+package frc.robot.commands.gpm;
+
+import edu.wpi.first.wpilibj2.command.Command;
+import frc.robot.subsystems.Intake.Intake;
+
+public class IntakeCommand extends Command{
+    private Intake intake;
+
+    public IntakeCommand(Intake intake){
+        this.intake = intake;
+        addRequirements(intake);
+    }
+
+    @Override
+    public void initialize() {
+        intake.extend();
+        intake.spinStart();
+    }
+
+    @Override
+    public void end(boolean interrupted) {
+        intake.intermediateExtend();
+        intake.spinStop();
+    }
+
+}