From 3d8ea49aed9e5cd37b20daa40866bb98e8fd045f Mon Sep 17 00:00:00 2001 From: aarav18 Date: Thu, 16 Mar 2023 23:24:30 -0600 Subject: [PATCH] reset place after place --- src/main/java/frc4388/robot/RobotContainer.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/java/frc4388/robot/RobotContainer.java b/src/main/java/frc4388/robot/RobotContainer.java index e62c452..68fc2b5 100644 --- a/src/main/java/frc4388/robot/RobotContainer.java +++ b/src/main/java/frc4388/robot/RobotContainer.java @@ -105,7 +105,7 @@ public class RobotContainer { public SequentialCommandGroup place = null; private Consumer queuePlacement = (scg) -> { - place = scg.andThen(new InstantCommand(() -> readyForPlacement = false), new InstantCommand(() -> isPole = null)); + place = scg.andThen(new InstantCommand(() -> readyForPlacement = false), new InstantCommand(() -> isPole = null), new InstantCommand(() -> place = null)); }; // TODO: find actual values @@ -217,7 +217,6 @@ public class RobotContainer { // .onFalse(new InstantCommand()); // * Operator Buttons - // align (pole) new JoystickButton(getDeadbandedOperatorController(), XboxController.A_BUTTON)