From a072f4c85ca8e1b71c7c0bb2ecbf88a4ca05a375 Mon Sep 17 00:00:00 2001 From: maxwtan <100314265+MaxwellTTan20@users.noreply.github.com> Date: Sat, 21 Feb 2026 10:29:46 -0800 Subject: [PATCH] don't think we're gonna use this but have it just in case --- .../frc/robot/commands/gpm/IntakeCommand.java | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 src/main/java/frc/robot/commands/gpm/IntakeCommand.java 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 index 0000000..7723ed8 --- /dev/null +++ b/src/main/java/frc/robot/commands/gpm/IntakeCommand.java @@ -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(); + } + +} -- 2.39.5