From 6e827cd6d36092aee27d60c055557c02071c6dbe Mon Sep 17 00:00:00 2001 From: FRCTeam3255-Shared <170778697+FRCTeam3255-Shared@users.noreply.github.com> Date: Sat, 30 May 2026 11:10:11 -0700 Subject: [PATCH] added buttons for shooter and reset pose Co-Authored-By: JAMES-ROMERO123 <244249583+JAMES-ROMERO123@users.noreply.github.com> Co-Authored-By: Justinpham17386769 <244249272+Justinpham17386769@users.noreply.github.com> Co-Authored-By: lameesnotlame <258483139+lameesnotlame@users.noreply.github.com> --- src/main/java/frc/robot/RobotContainer.java | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/main/java/frc/robot/RobotContainer.java b/src/main/java/frc/robot/RobotContainer.java index 44cfe98..08a9c8f 100644 --- a/src/main/java/frc/robot/RobotContainer.java +++ b/src/main/java/frc/robot/RobotContainer.java @@ -21,8 +21,10 @@ import edu.wpi.first.wpilibj2.command.DeferredCommand; import frc.robot.DeviceIDs.controllerIDs; import frc.robot.commands.AddVisionMeasurement; +import frc.robot.commands.ResetPose; import frc.robot.commands.states.Intaking; import frc.robot.commands.states.RetractIntake; +import frc.robot.commands.states.Shooting; import frc.robot.constants.ConstSystem; import frc.robot.constants.ConstSystem.constControllers; import frc.robot.subsystems.DriverStateMachine; @@ -63,7 +65,8 @@ public class RobotContainer { private final Vision loggedVisionInstance = visionInstance; public static final Telemetry telemetryInstance = new Telemetry(); private final Telemetry loggedTelemetryInstance = telemetryInstance; - + public static final Shooting shooting = new Shooting(); + public static final ResetPose resetPose = new ResetPose(); Command TRY_NONE = Commands.deferredProxy( () -> stateMachineInstance.tryState(RobotState.NONE)); @@ -101,12 +104,16 @@ public RobotContainer() { private void configDriverBindings() { conDriver.btn_RightTrigger .whileTrue(intaking); - conDriver.btn_LeftTrigger + conDriver.btn_RightBumper .whileTrue(retracting); // Example Pose Drive conDriver.btn_X .whileTrue(EXAMPLE_POSE_DRIVE) .onFalse(Commands.runOnce(() -> driverStateMachineInstance.setDriverState(DriverState.MANUAL))); + conDriver.btn_LeftTrigger + .whileTrue(shooting); + conDriver.btn_North + .onTrue(resetPose); } private void configOperatorBindings() { @@ -126,6 +133,7 @@ public void configAutonomous() { final Map autoStartingPoses = Map.ofEntries( // Example // Map.entry(autoCommand, "choreoStartingPath"), + ); // enter which we want to do based on name autoChooser.onChange(selectedAuto -> {