Skip to content

Commit

Permalink
Fix trigger for auto home after spit amp
Browse files Browse the repository at this point in the history
  • Loading branch information
gvaldez7206 committed Sep 28, 2024
1 parent 2c35e4d commit 8f65736
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/frc/robot/RobotContainer.java
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,8 @@ private void configureButtonBindings() {
OperatorState.decrement();
}).ignoringDisable(true));
new Trigger(() -> OperatorState.getCurrentState() == OperatorState.State.kAmp)
.and(noteInIndexer.negate()).debounce(1.0).onTrue(elevatorWrist.homePosition());
.and(new Trigger(() -> !this.intake.getIndexerBeamBrakeStatus()).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 8f65736

Please sign in to comment.