Skip to content

Commit

Permalink
[Robot] Change aim button to right bumper
Browse files Browse the repository at this point in the history
Much easier button to press
  • Loading branch information
mvog2501 committed Jul 18, 2024
1 parent d41aa26 commit b8c8828
Showing 1 changed file with 4 additions and 12 deletions.
16 changes: 4 additions & 12 deletions Robot/src/main/java/com/swrobotics/robot/control/ControlBoard.java
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,9 @@ public class ControlBoard extends SubsystemBase {
* Driver:
* Left stick: translation
* Right stick X: rotation
* Left bumper: high lob
* Left Trigger: low lob
* Right trigger: aim at speaker
* Right bumper: spin up flywheel
* Dpad Left: Manual subwoofer shot
* Dpad Right: Manual podium shot
* Dpad Up: Snap to distance closer to speaker
* Dpad Down: Snap to distance farther to speaker
* Left bumper: lob (automatic high/low)
* Right bumper: aim at speaker
* Dpad down: Manual subwoofer shot
*
* Operator:
* A: intake
Expand Down Expand Up @@ -136,7 +131,7 @@ public ControlBoard(RobotContainer robot) {
}

private boolean driverWantsAim() {
return driver.rightTrigger.isOutside(TRIGGER_BUTTON_THRESHOLD);
return driver.rightBumper.isPressed();
}

private double squareWithSign(double value) {
Expand Down Expand Up @@ -214,9 +209,6 @@ public void periodic() {
return;
}

// if (!operator.a.isPressed())
// robot.intake.set(IntakeSubsystem.State.OFF);

boolean forceToSubwoofer = forceSubwooferTrigger.getAsBoolean();
robot.drive.setEstimatorIgnoreVision(forceToSubwoofer);

Expand Down

0 comments on commit b8c8828

Please sign in to comment.