Skip to content

Commit

Permalink
Update AutonShoot.java
Browse files Browse the repository at this point in the history
  • Loading branch information
PGgit08 committed Mar 15, 2024
1 parent 2332308 commit 4647c7a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/frc/robot/commands/shooter/AutonShoot.java
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,15 @@ public AutonShoot(
// Add your commands in the addCommands() call, e.g.
// addCommands(new FooCommand(), new BarCommand());
addCommands(
new FeedActuate(intake, FeedMode.INTAKE).onlyIf(() -> _preloadShot).withTimeout(1),

// Parallel command group that aims, revs, and squeezes note. ONLY APPLIES TO PRELOADED NOTE.
new ParallelCommandGroup(
new SpinShooter(shooter, ShooterState.SHOOT).withTimeout(2),
new AutoAim(shooter, elevator, leds, swerve, Presets.CLOSE_SHOOTER_ANGLE, Presets.CLOSE_ELEVATOR_HEIGHT, this::headingPreset).withTimeout(3),
new FeedActuate(intake, FeedMode.INTAKE).withTimeout(1)
).onlyIf(() -> !_preloadShot).andThen(() -> _preloadShot = true),

new FeedActuate(intake, FeedMode.INTAKE).onlyIf(() -> _preloadShot).withTimeout(1),
new FeedActuate(intake, FeedMode.OUTTAKE).withTimeout(1),
new SpinShooter(shooter, ShooterState.NONE, true)
);
Expand Down

0 comments on commit 4647c7a

Please sign in to comment.