diff --git a/src/main/java/frc/robot/RobotContainer.java b/src/main/java/frc/robot/RobotContainer.java index 62f41f5..e9b16b9 100644 --- a/src/main/java/frc/robot/RobotContainer.java +++ b/src/main/java/frc/robot/RobotContainer.java @@ -146,13 +146,13 @@ public RobotContainer() { Map.entry(enbas,pivoteBrasBas), Map.entry(nulpart,pivotBrasRentre) ), chooser::getSelected), - ouvrePince.unless(()->chooser.getSelected().equals(nulpart)), + 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)), new PivotBrasRentre(brasTelescopique , pivot).unless(()->chooser.getSelected().equals(nulpart)), Commands.waitSeconds(1), Commands.either(reculers, reculerb,()-> autosortir.getBoolean(true)), - avancer.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(new InstantCommand(basePilotable::BrakeOuvre,basePilotable));