From ba8d811ed123eae8c9eb80451cc6b40aa7b3fc54 Mon Sep 17 00:00:00 2001 From: "Team 3128: Controls" Date: Tue, 17 Oct 2023 18:39:26 -0700 Subject: [PATCH] Workshop 10/16 --- src/main/java/frc/team3128/commands/CmdManager.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main/java/frc/team3128/commands/CmdManager.java b/src/main/java/frc/team3128/commands/CmdManager.java index 171117f..3fa7568 100644 --- a/src/main/java/frc/team3128/commands/CmdManager.java +++ b/src/main/java/frc/team3128/commands/CmdManager.java @@ -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)) ); } @@ -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)) ); }