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

Commit

Permalink
feat(auto): shoot while moving
Browse files Browse the repository at this point in the history
  • Loading branch information
Craftzman7 committed Sep 26, 2023
1 parent f485ddd commit 1fdb919
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/main/java/frc/robot/commands/autonomous/AutoShoot.java
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,14 @@ public AutoShoot(Drivetrain drivetrain, boolean shouldShootInPlace) {
new PathPoint(
shootPose.getTranslation(),
shootPose.getRotation(),
shootPose.getRotation()
shootPose.getRotation(),
2
),
false);
return driveCommand.andThen(
new InstantCommand(() -> {
RobotContainer.arm.setTarget(Arm.State.High);
}),
new WaitCommand(1),
new InstantCommand(() -> {
RobotContainer.arm.setRollerState(Rollers.State.Outtake);
}),
Expand All @@ -53,7 +53,6 @@ public AutoShoot(Drivetrain drivetrain, boolean shouldShootInPlace) {
new InstantCommand(() -> {
RobotContainer.arm.setTarget(Arm.State.High);
}),
new WaitCommand(1),
new InstantCommand(() -> {
RobotContainer.arm.setRollerState(Rollers.State.Outtake);
}),
Expand Down

0 comments on commit 1fdb919

Please sign in to comment.