Skip to content

Commit

Permalink
stop shoot after auto shot, change autoaim angle to 30 deg from 35 deg
Browse files Browse the repository at this point in the history
  • Loading branch information
AvidCoder27 committed Oct 16, 2024
1 parent 3b62d34 commit 64aafa0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main/java/frc/team5115/RobotContainer.java
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ private void configureButtonBindings() {
.leftBumper()
.onTrue(
DriveCommands.automaticallyPrepareShoot(drivetrain, arm, intake, feeder, shooter)
.andThen(DriveCommands.feed(intake, feeder)));
.andThen(DriveCommands.feed(intake, feeder), shooter.stop()));
}

public void robotPeriodic() {
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/frc/team5115/commands/DriveCommands.java
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public static Command automaticallyPrepareShoot(
Drivetrain drivetrain, Arm arm, Intake intake, Feeder feeder, Shooter shooter) {
return drivetrain
.faceSpeaker()
.alongWith(prepareShoot(arm, intake, feeder, shooter, 35.0, 5000))
.alongWith(prepareShoot(arm, intake, feeder, shooter, 30.0, 5000))
.withInterruptBehavior(InterruptionBehavior.kCancelSelf);
}

Expand Down

0 comments on commit 64aafa0

Please sign in to comment.