From: maxwtan <100314265+MaxwellTTan20@users.noreply.github.com> Date: Sat, 21 Feb 2026 18:29:46 +0000 (-0800) Subject: don't think we're gonna use this but have it just in case X-Git-Url: https://git.taranathan.com/?a=commitdiff_plain;h=a072f4c85ca8e1b71c7c0bb2ecbf88a4ca05a375;p=FRC2026.git don't think we're gonna use this but have it just in case --- 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(); + } + +}