Skip to content

Commit

Permalink
slo-mo for off-season bot
Browse files Browse the repository at this point in the history
  • Loading branch information
Bob1272001 committed Oct 27, 2024
1 parent cb10830 commit 9d74ee9
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions src/main/java/frc/robot/RobotContainer.java
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,16 @@ private void configureButtonBindings() {
controller1
.leftBumper()
.whileTrue(Commands.startEnd(() -> pivot.runVoltage(3), () -> pivot.runVoltage(0), pivot));
controller
.povUp()
.whileTrue(
Commands.startEnd(() -> shooter.setVoltage(3), () -> shooter.setVoltage(0), pivot));
// controller.leftBumper()
// .onTrue(Commands.runOnce(() -> pivot.runVoltage(3)))
// .onFalse(Commands.runOnce(() ->pivot.runVoltage(0), pivot));
// controller.rightBumper()
// .onTrue(Commands.runOnce(() -> pivot.runVoltage(3)))
// .onFalse(Commands.runOnce(() ->pivot.runVoltage(0), pivot));

controller1
.rightBumper()
Expand All @@ -162,7 +172,7 @@ private void configureButtonBindings() {
.onTrue(
Commands.race(
Commands.startEnd(
() -> shooter.setLeftRightVoltage(11, 2), () -> shooter.setVoltage(0)),
() -> shooter.setLeftRightVoltage(5, 1), () -> shooter.setVoltage(0)),
Commands.sequence(
Commands.waitSeconds(2),
Commands.startEnd(
Expand All @@ -187,7 +197,7 @@ private void configureButtonBindings() {
controller
.povLeft()
.whileTrue(
Commands.startEnd(() -> shooter.setVoltage(-9), () -> shooter.setVoltage(0), pivot));
Commands.startEnd(() -> shooter.setVoltage(-4), () -> shooter.setVoltage(0), pivot));

controller
.povUp()
Expand Down

0 comments on commit 9d74ee9

Please sign in to comment.