Skip to content
This repository has been archived by the owner on May 12, 2024. It is now read-only.

Commit

Permalink
fix(auto): make sure to stop rollers on shoot
Browse files Browse the repository at this point in the history
  • Loading branch information
Craftzman7 committed Sep 21, 2023
1 parent b1aca8a commit f485ddd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/java/frc/robot/commands/autonomous/AutoShoot.java
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ public AutoShoot(Drivetrain drivetrain, boolean shouldShootInPlace) {
new InstantCommand(() -> {
RobotContainer.arm.setRollerState(Rollers.State.Outtake);
}),
new WaitCommand(0.25),
new InstantCommand(() -> RobotContainer.arm.setRollerState(Rollers.State.Off)),
new InstantCommand(() -> RobotContainer.arm.setTarget(Arm.State.Stowed))
);
} else {
Expand All @@ -55,6 +57,8 @@ public AutoShoot(Drivetrain drivetrain, boolean shouldShootInPlace) {
new InstantCommand(() -> {
RobotContainer.arm.setRollerState(Rollers.State.Outtake);
}),
new WaitCommand(0.25),
new InstantCommand(() -> RobotContainer.arm.setRollerState(Rollers.State.Off)),
new InstantCommand(() -> RobotContainer.arm.setTarget(Arm.State.Stowed))
);
}
Expand Down

0 comments on commit f485ddd

Please sign in to comment.