extending and retracting buttons

x and y using percenoutput
This commit is contained in:
SHikhar
2026-02-14 15:00:40 -07:00
parent 13b80c6341
commit 8f595e8741
6 changed files with 39 additions and 9 deletions
@@ -269,7 +269,17 @@ public class RobotContainer {
.onFalse(new InstantCommand(() -> {
m_robotShooter.setShooterNotReady();
}));
new JoystickButton(getDeadbandedOperatorController(), XboxController.Y_BUTTON)
.onFalse(new InstantCommand(() -> {
m_robotIntake.setMode(IntakeMode.Retracting);
}));
new JoystickButton(getDeadbandedOperatorController(), XboxController.X_BUTTON)
.onFalse(new InstantCommand(() -> {
m_robotShooter.setShooterNotReady();
m_robotIntake.setMode(IntakeMode.Extending);
}));
}