From e27ff1a6ecb3019edc569ec4fae91a22ef096afc Mon Sep 17 00:00:00 2001 From: FRCTeam3255-Shared Date: Sat, 30 May 2026 13:47:02 -0500 Subject: [PATCH] created PrepNeautralToAlliance, PrepOpponentToAlliance, PrepAnywhere states --- .../robot/commands/states/PrepAnywhere.java | 33 +++++++++++++++++++ .../states/PrepNeautralToAlliance.java | 33 +++++++++++++++++++ .../states/PrepOpponentToAlliance.java | 33 +++++++++++++++++++ 3 files changed, 99 insertions(+) create mode 100644 src/main/java/frc/robot/commands/states/PrepAnywhere.java create mode 100644 src/main/java/frc/robot/commands/states/PrepNeautralToAlliance.java create mode 100644 src/main/java/frc/robot/commands/states/PrepOpponentToAlliance.java diff --git a/src/main/java/frc/robot/commands/states/PrepAnywhere.java b/src/main/java/frc/robot/commands/states/PrepAnywhere.java new file mode 100644 index 0000000..c40b7f7 --- /dev/null +++ b/src/main/java/frc/robot/commands/states/PrepAnywhere.java @@ -0,0 +1,33 @@ +// 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.states; + +import edu.wpi.first.wpilibj2.command.Command; + +/* You should consider using the more terse Command factories API instead https://docs.wpilib.org/en/stable/docs/software/commandbased/organizing-command-based.html#defining-commands */ +public class PrepAnywhere extends Command { + /** Creates a new PrepAnywhere. */ + public PrepAnywhere() { + // Use addRequirements() here to declare subsystem dependencies. + } + + // 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() {} + + // 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/states/PrepNeautralToAlliance.java b/src/main/java/frc/robot/commands/states/PrepNeautralToAlliance.java new file mode 100644 index 0000000..b70ed74 --- /dev/null +++ b/src/main/java/frc/robot/commands/states/PrepNeautralToAlliance.java @@ -0,0 +1,33 @@ +// 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.states; + +import edu.wpi.first.wpilibj2.command.Command; + +/* You should consider using the more terse Command factories API instead https://docs.wpilib.org/en/stable/docs/software/commandbased/organizing-command-based.html#defining-commands */ +public class PrepNeautralToAlliance extends Command { + /** Creates a new PrepNeautralToAlliance. */ + public PrepNeautralToAlliance() { + // Use addRequirements() here to declare subsystem dependencies. + } + + // 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() {} + + // 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/states/PrepOpponentToAlliance.java b/src/main/java/frc/robot/commands/states/PrepOpponentToAlliance.java new file mode 100644 index 0000000..5c6121a --- /dev/null +++ b/src/main/java/frc/robot/commands/states/PrepOpponentToAlliance.java @@ -0,0 +1,33 @@ +// 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.states; + +import edu.wpi.first.wpilibj2.command.Command; + +/* You should consider using the more terse Command factories API instead https://docs.wpilib.org/en/stable/docs/software/commandbased/organizing-command-based.html#defining-commands */ +public class PrepOpponentToAlliance extends Command { + /** Creates a new PrepOpponentToAlliance. */ + public PrepOpponentToAlliance() { + // Use addRequirements() here to declare subsystem dependencies. + } + + // 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() {} + + // 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; + } +}