reset place after place

This commit is contained in:
aarav18
2023-03-16 23:24:30 -06:00
parent f93047dc4a
commit 3d8ea49aed
@@ -105,7 +105,7 @@ public class RobotContainer {
public SequentialCommandGroup place = null; public SequentialCommandGroup place = null;
private Consumer<SequentialCommandGroup> queuePlacement = (scg) -> { private Consumer<SequentialCommandGroup> 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 // TODO: find actual values
@@ -218,7 +218,6 @@ public class RobotContainer {
// * Operator Buttons // * Operator Buttons
// align (pole) // align (pole)
new JoystickButton(getDeadbandedOperatorController(), XboxController.A_BUTTON) new JoystickButton(getDeadbandedOperatorController(), XboxController.A_BUTTON)
.onTrue(alignToPole); .onTrue(alignToPole);