diff --git a/src/main/java/frc/robot/RobotContainer.java b/src/main/java/frc/robot/RobotContainer.java index 6147a6b7..1456e611 100755 --- a/src/main/java/frc/robot/RobotContainer.java +++ b/src/main/java/frc/robot/RobotContainer.java @@ -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(Map.of( //