From 1da49837db76e3ae31f03d0e1593aec704cc02df Mon Sep 17 00:00:00 2001 From: Antoine PerreaultE Date: Mon, 20 Mar 2023 19:15:34 -0400 Subject: [PATCH] d --- src/main/java/frc/robot/RobotContainer.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/main/java/frc/robot/RobotContainer.java b/src/main/java/frc/robot/RobotContainer.java index 04667cc..729301c 100644 --- a/src/main/java/frc/robot/RobotContainer.java +++ b/src/main/java/frc/robot/RobotContainer.java @@ -109,7 +109,6 @@ public class RobotContainer { private void configureBindings() { // manette 1 - //y lumiere limelight, manuel 2e joystik, manette1.a().toggleOnTrue(Commands.startEnd(pince::ouvrir, pince::fermer,pince)); manette1.x().onTrue(brakeOuvre); manette1.b().onTrue(brakeFerme); @@ -152,12 +151,11 @@ public class RobotContainer { Map.entry(nulpart, creerCommandBras(0, 0))), chooser::getSelected), new OuvrePince(pince).unless(() -> chooser.getSelected().equals(nulpart)), Commands.waitSeconds(1), - fermePince.unless(() -> chooser.getSelected().equals(nulpart)), + new FermePince(pince).unless(() -> chooser.getSelected().equals(nulpart)), creerCommandBras(0, 0).unless(() -> chooser.getSelected().equals(nulpart)), Commands.waitSeconds(1), Commands.either(reculers, reculerb, () -> autosortir.getBoolean(true)), - new Avancer(basePilotable, () -> avancerdistance.getDouble(0)) - .unless(() -> !autosortir.getBoolean(true) || !autobalance.getBoolean(false)), + new Avancer(basePilotable, () -> avancerdistance.getDouble(0)).unless(() -> !autosortir.getBoolean(true) || !autobalance.getBoolean(false)), Commands.either(gyro, Commands.none(), () -> autobalance.getBoolean(true)))) .andThen(brakeOuvre);