Skip to content

Commit

Permalink
keep LEDs on constantly while we have a piece
Browse files Browse the repository at this point in the history
  • Loading branch information
superpenguin612 committed Apr 13, 2024
1 parent f0edd30 commit c21c083
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/main/java/frc/robot/RobotContainer.java
Original file line number Diff line number Diff line change
Expand Up @@ -166,9 +166,8 @@ public RobotContainer() {
&& climber.getInitialized();
}).onTrue(GlobalStates.INITIALIZED.enableCommand());

intake.noteInIntakeFromOutsideTrigger.debounce(0.15)
.onTrue(leds.requestStateCommand(LEDState.SOLID_GREEN).withTimeout(1));
intake.noteInShooterTrigger.onTrue(leds.requestStateCommand(LEDState.SOLID_BLUE).withTimeout(1));
intake.noteInIntakeFromOutsideTrigger.debounce(0.15).whileTrue(leds.requestStateCommand(LEDState.SOLID_GREEN));
intake.noteInShooterTrigger.whileTrue(leds.requestStateCommand(LEDState.SOLID_BLUE));

leds.requestStateCommand(LEDState.INITIALIZATION_BLACK_BACKGROUND).until(GlobalStates.INITIALIZED::enabled)
.schedule();
Expand Down

0 comments on commit c21c083

Please sign in to comment.