This commit is contained in:
Michael Mikovsky
2026-02-14 11:50:09 -08:00
parent 8381ac4607
commit abc3dc6b14
3 changed files with 19 additions and 16 deletions
@@ -220,19 +220,19 @@ public class RobotContainer {
// IF the driver is holding the aim button, aim the robot towards the hub and shooter ready
new Trigger(() -> getDeadbandedDriverController().getRightTriggerAxis() >= 0.5)
.whileTrue(new RunCommand(
() -> {
// m_robotSwerveDrive.driveFacingPosition(
// getDeadbandedDriverController().getLeft(),
// FieldPositions.HUB_POSITION);
}, m_robotSwerveDrive)
)
// .whileTrue(new RunCommand(
// () -> {
// m_robotSwerveDrive.driveFacingPosition(
// getDeadbandedDriverController().getLeft(),
// FieldPositions.HUB_POSITION);
// }, m_robotSwerveDrive)
// )
.onTrue(new InstantCommand(() -> {
// When Right trigger is pressed,
m_robotShooter.setShooterReady();
}))
.onFalse(new InstantCommand(() -> {
m_robotIntake.setMode(IntakeMode.Retracted);
// m_robotIntake.setMode(IntakeMode.Retracted);
m_robotShooter.setShooterNotReady();
}));