Skip to content

Commit

Permalink
switch bumpers to be AimAtAngle (while driving) as well as hold (like…
Browse files Browse the repository at this point in the history
… at last comp)
  • Loading branch information
MichaelLesirge committed Mar 30, 2024
1 parent ed5b772 commit 9d9f073
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/frc/robot/RobotContainer.java
Original file line number Diff line number Diff line change
Expand Up @@ -251,8 +251,8 @@ public void setUpDriveController() {
new Trigger(() -> driverXboxRaw.getPOV() == 270)
.onTrue(new AutoRotateTo(drivetrain, Rotation2d.fromDegrees(270), true));

driverXboxController.leftBumper().onTrue(new AutoRotateTo(drivetrain, Rotation2d.fromDegrees(300)));
driverXboxController.rightBumper().onTrue(new AutoRotateTo(drivetrain, Rotation2d.fromDegrees(60)));
driverXboxController.leftBumper().whileTrue(new AimAtAngle(drivetrain, inputs, Rotation2d.fromDegrees(300)));
driverXboxController.rightBumper().whileTrue(new AimAtAngle(drivetrain, inputs, Rotation2d.fromDegrees(60)));

driverXboxController.b().onTrue(cancelCommand);
}
Expand Down

0 comments on commit 9d9f073

Please sign in to comment.