From 8cd0b5a65f5e80e36f2c1585d2f9ec6ffbf34469 Mon Sep 17 00:00:00 2001 From: TheRealGrayden Date: Tue, 7 Apr 2026 19:20:15 -0400 Subject: [PATCH] Removed Intake and Shoot --- .../java/frc/robot/commands/ManualIntake.java | 52 ------------------- .../robot/commands/ManualShootCommand.java | 48 ----------------- 2 files changed, 100 deletions(-) delete mode 100644 src/main/java/frc/robot/commands/ManualIntake.java delete mode 100644 src/main/java/frc/robot/commands/ManualShootCommand.java diff --git a/src/main/java/frc/robot/commands/ManualIntake.java b/src/main/java/frc/robot/commands/ManualIntake.java deleted file mode 100644 index 95096a8..0000000 --- a/src/main/java/frc/robot/commands/ManualIntake.java +++ /dev/null @@ -1,52 +0,0 @@ -// Copyright (c) FIRST and other WPILib contributors. -// Open Source Software; you can modify and/or share it under the terms of -// the WPILib BSD license file in the root directory of this project. - -package frc.robot.commands; - -import frc.robot.subsystems.IntakeSubsystem; - -import edu.wpi.first.wpilibj.XboxController; -import edu.wpi.first.wpilibj2.command.Command; - -/** An example command that uses an example subsystem. */ -public class ManualIntake extends Command { - @SuppressWarnings({"PMD.UnusedPrivateField", "PMD.SingularField"}) - private final IntakeSubsystem m_subsystem; - private final XboxController m_XboxController; - - /** - * Creates a new ExampleCommand. - * - * @param subsystem The subsystem used by this command. - */ - public ManualIntake(IntakeSubsystem subsystem, XboxController xboxController) { - m_subsystem = subsystem; - m_XboxController = xboxController; - // Use addRequirements() here to declare subsystem dependencies. - addRequirements(subsystem); - } - - // Called when the command is initially scheduled. - @Override - public void initialize() {} - - // Called every time the scheduler runs while the command is scheduled. - @Override - public void execute() { - if(m_XboxController.getYButton()==true) - { - m_subsystem.deploy(); - } - } - - // Called once the command ends or is interrupted. - @Override - public void end(boolean interrupted) {} - - // Returns true when the command should end. - @Override - public boolean isFinished() { - return false; - } -} diff --git a/src/main/java/frc/robot/commands/ManualShootCommand.java b/src/main/java/frc/robot/commands/ManualShootCommand.java deleted file mode 100644 index cb397b0..0000000 --- a/src/main/java/frc/robot/commands/ManualShootCommand.java +++ /dev/null @@ -1,48 +0,0 @@ -// Copyright (c) FIRST and other WPILib contributors. -// Open Source Software; you can modify and/or share it under the terms of -// the WPILib BSD license file in the root directory of this project. - -package frc.robot.commands; - -import frc.robot.subsystems.TurretSubsystem; -import edu.wpi.first.wpilibj.XboxController; -import edu.wpi.first.wpilibj.GenericHID.RumbleType; -import edu.wpi.first.wpilibj2.command.Command; - -/** An example command that uses an example subsystem. */ -public class ManualShootCommand extends Command { - private final TurretSubsystem m_subsystem; - private final XboxController m_controller; - - public ManualShootCommand(TurretSubsystem subsystem, XboxController controller) { - m_subsystem = subsystem; - m_controller = controller; - // Use addRequirements() here to declare subsystem dependencies. - addRequirements(subsystem); - } - - // Called every time the scheduler runs while the command is scheduled. - @Override - public void execute() { - if(m_controller.getRightTriggerAxis()>.5 && m_controller.getLeftTriggerAxis()==0) - { - m_subsystem.turretRotateDir(-.5); - m_controller.setRumble(RumbleType.kRightRumble, 1); - } - else if(m_controller.getLeftTriggerAxis()>.5 && m_controller.getRightTriggerAxis()==0) - { - m_subsystem.turretRotateDir(.5); - m_controller.setRumble(RumbleType.kLeftRumble, 1); - } - else - { - m_subsystem.turretRotateDir(0); - m_controller.setRumble(RumbleType.kBothRumble, 0); - } - } - - @Override - public boolean isFinished() { - return false; - } -}