mirror of
https://github.com/Team4388/2023WayOfTheRobot.git
synced 2026-06-09 00:37:59 -06:00
reset place after place
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user