Skip to content

Commit

Permalink
[#543] talking is in fact hard
Browse files Browse the repository at this point in the history
  • Loading branch information
Fr1tzBot committed Apr 15, 2024
1 parent a03918b commit badfe9e
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 @@ -256,7 +256,7 @@ protected void configureButtonBindings() {
new Trigger(() -> driver.getPOV() == 0).toggleOnTrue(leds.enableState(LED_STATES.DISABLED));

/* COPILOT */
new Trigger(coPilot::getBButton)
new Trigger(() -> (coPilot.getBButton() && !driver.getRightBumper()))
.whileTrue(new InstantCommand(() -> flywheel.stop(), flywheel)
.andThen(new SmartCollect(() -> 0.65, () -> 0.9, collector, indexer, pivot, flywheel))
.deadlineWith(leds.enableState(LED_STATES.COLLECTING)));
Expand All @@ -266,7 +266,7 @@ protected void configureButtonBindings() {
// .deadlineWith(leds.enableState(LED_STATES.COLLECTING).withTimeout(1)));

// cand shots for the robot
new Trigger(coPilot::getXButton)
new Trigger(() -> coPilot.getXButton() && !driver.getAButton())
.whileTrue(new PointBlankShot(flywheel, pivot).deadlineWith(leds.enableState(LED_STATES.SHOOTING)));
// new Trigger(coPilot::getYButton).whileTrue(new PivotUP(pivot));
// new Trigger(coPilot::getYButton).whileTrue(new NotePass(drivetrain, flywheel, pivot, driver, indexer));
Expand Down

0 comments on commit badfe9e

Please sign in to comment.