Skip to content

Commit

Permalink
Change bumper buttons
Browse files Browse the repository at this point in the history
Co-Authored-By: Aceius E. <144858100+AceiusRedshift@users.noreply.github.com>
  • Loading branch information
MeowAzalea and AceiusRedshift committed Apr 5, 2024
1 parent 1792625 commit b95c777
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/main/java/frc/robot/RobotContainer.java
Original file line number Diff line number Diff line change
Expand Up @@ -252,17 +252,17 @@ public void setUpDriveController() {
new Trigger(() -> driverXboxRaw.getPOV() == 270)
.onTrue(new AutoRotateTo(drivetrain, Rotation2d.fromDegrees(270), true));

driverXboxController.leftBumper()
.whileTrue(new AimAtAngle(drivetrain, inputs,
teamChooser.getSelected() == Alliance.Blue ? Rotation2d.fromDegrees(270)
: Rotation2d.fromDegrees(90)));
driverXboxController.rightBumper()
.whileTrue(new AimAtAngle(drivetrain, inputs, Rotation2d.fromDegrees(0)));

// driverXboxController.leftBumper()
// .whileTrue(new AimAtAngle(drivetrain, inputs, Rotation2d.fromDegrees(300)));
// .whileTrue(new InstantCommand(() -> new AimAtAngle(drivetrain, inputs,
// teamChooser.getSelected() == Alliance.Blue ? Rotation2d.fromDegrees(270)
// : Rotation2d.fromDegrees(90))));
// driverXboxController.rightBumper()
// .whileTrue(new AimAtAngle(drivetrain, inputs, Rotation2d.fromDegrees(60)));
// .whileTrue(new AimAtAngle(drivetrain, inputs, Rotation2d.fromDegrees(0)));

driverXboxController.leftBumper()
.whileTrue(new AimAtAngle(drivetrain, inputs, Rotation2d.fromDegrees(90)));
driverXboxController.rightBumper()
.whileTrue(new AimAtAngle(drivetrain, inputs, Rotation2d.fromDegrees(270)));

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

0 comments on commit b95c777

Please sign in to comment.