Skip to content

Commit

Permalink
add trigger to go home
Browse files Browse the repository at this point in the history
  • Loading branch information
owenflatman committed Sep 27, 2024
1 parent 7458b7c commit 2c35e4d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/java/frc/robot/RobotContainer.java
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,8 @@ private void configureButtonBindings() {
operator.povLeft().onTrue(Commands.runOnce(() -> {
OperatorState.decrement();
}).ignoringDisable(true));
new Trigger(() -> OperatorState.getCurrentState() == OperatorState.State.kAmp)
.and(noteInIndexer.negate()).debounce(1.0).onTrue(elevatorWrist.homePosition());
// run action based on current state as incremented through operator states list
operator.a().whileTrue(new SelectCommand<OperatorState.State>(Map.of(
//
Expand Down

0 comments on commit 2c35e4d

Please sign in to comment.