Skip to content

Commit

Permalink
Workshop 10/16
Browse files Browse the repository at this point in the history
  • Loading branch information
ControlsNarwhal committed Oct 18, 2023
1 parent d0602b0 commit ba8d811
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/main/java/frc/team3128/commands/CmdManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,8 @@ public static CommandBase pickup(Position position, boolean runImmediately) {
extend(position),
intake(position.cone)
),
retract(Position.NEUTRAL)
retract(Position.NEUTRAL),
runOnce(()-> leds.setElevatorLeds(Colors.DEFAULT))
);
}

Expand Down Expand Up @@ -112,7 +113,8 @@ public static CommandBase intake(Boolean cone) {
waitSeconds(0.2),
waitUntil(()-> manipulator.hasObjectPresent()),
waitSeconds(cone ? 0.15 : 0),
runOnce(()-> manipulator.stallPower(), manipulator)
runOnce(()-> manipulator.stallPower(), manipulator),
runOnce(()-> leds.setElevatorLeds(Colors.HOLDING))
);
}

Expand Down

0 comments on commit ba8d811

Please sign in to comment.