Skip to content

Commit

Permalink
Add turn and decrease shoot timeout for autos
Browse files Browse the repository at this point in the history
  • Loading branch information
harnwalN committed Feb 11, 2024
1 parent 9f1daae commit 6e428f7
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/main/java/frc/robot/RobotContainer.java
Original file line number Diff line number Diff line change
Expand Up @@ -102,16 +102,17 @@ public RobotContainer() {
Commands.sequence(
new PrepareLaunch(shooter, hopper)
.withTimeout(Constants.SHOOTER_DELAY)
.andThen(new LaunchNote(shooter, hopper).withTimeout(3)),
AutoBuilder.buildAuto("Amp_Out")));
.andThen(new LaunchNote(shooter, hopper).withTimeout(2)),
AutoBuilder.buildAuto("Amp_Out"),
new Turn(drive, Rotation2d.fromDegrees(180), true)));
autoChooser.addOption(
"Shoot Source Out",
Commands.sequence(
new PrepareLaunch(shooter, hopper)
.withTimeout(Constants.SHOOTER_DELAY)
.andThen(new LaunchNote(shooter, hopper).withTimeout(3)),
AutoBuilder.buildAuto("Source_Out")));
autoChooser.addOption("Turn", new Turn(drive, Rotation2d.fromDegrees(90), false));
.andThen(new LaunchNote(shooter, hopper).withTimeout(2)),
AutoBuilder.buildAuto("Source_Out"),
new Turn(drive, Rotation2d.fromDegrees(180), true)));

// Configure the button bindings
configureButtonBindings();
Expand Down

0 comments on commit 6e428f7

Please sign in to comment.