Y auto activation

autos activate when y is pressed, automatically stop when done
This commit is contained in:
McGrathMaggie
2025-01-13 19:43:35 -07:00
parent 7fdb5dcd58
commit 882acc9b93
2 changed files with 23 additions and 3 deletions
@@ -164,6 +164,13 @@ public class RobotContainer {
.onTrue(new InstantCommand(() -> m_robotSwerveDrive.shiftUpRot()));
// ? /* Operator Buttons */
new JoystickButton(getDeadbandedDriverController(), XboxController.Y_BUTTON)
.onTrue(new GotoPositionCommand(m_robotSwerveDrive, m_vision));
new JoystickButton(getDeadbandedDriverController(), XboxController.B_BUTTON)
.onTrue(new InstantCommand(() -> {}, m_robotSwerveDrive));
// creates an empty command & requires the swerve drive, subsystems can run only 1 command at a time
// ? /* Programer Buttons (Controller 3)*/