From 75024b1c0e7fac88e87b91247b9a23a890c986da Mon Sep 17 00:00:00 2001 From: Jay Date: Sat, 11 Nov 2023 18:46:36 -0800 Subject: [PATCH] auto stow --- src/main/java/frc/robot/commands/GroundPickupCommand.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/frc/robot/commands/GroundPickupCommand.java b/src/main/java/frc/robot/commands/GroundPickupCommand.java index 3e073f8..51a5169 100644 --- a/src/main/java/frc/robot/commands/GroundPickupCommand.java +++ b/src/main/java/frc/robot/commands/GroundPickupCommand.java @@ -24,7 +24,7 @@ public GroundPickupCommand( addCommands( new IntakeModeCommand(intakeSubsystem, Modes.INTAKE, isCube) - .alongWith(new GroundIntakeElevatorCommand(elevatorSubsystem, isCube)) + .deadlineWith(new GroundIntakeElevatorCommand(elevatorSubsystem, isCube)) .andThen( new ElevatorPositionCommand(elevatorSubsystem, () -> Elevator.Setpoints.STOWED))); }