nb
This commit is contained in:
parent
06bd854326
commit
0e72ebe049
@ -146,13 +146,13 @@ public RobotContainer() {
|
|||||||
Map.entry(enbas,pivoteBrasBas),
|
Map.entry(enbas,pivoteBrasBas),
|
||||||
Map.entry(nulpart,pivotBrasRentre)
|
Map.entry(nulpart,pivotBrasRentre)
|
||||||
), chooser::getSelected),
|
), chooser::getSelected),
|
||||||
ouvrePince.unless(()->chooser.getSelected().equals(nulpart)),
|
new OuvrePince(pince).unless(()->chooser.getSelected().equals(nulpart)),
|
||||||
Commands.waitSeconds(1),
|
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)),
|
new PivotBrasRentre(brasTelescopique , pivot).unless(()->chooser.getSelected().equals(nulpart)),
|
||||||
Commands.waitSeconds(1),
|
Commands.waitSeconds(1),
|
||||||
Commands.either(reculers, reculerb,()-> autosortir.getBoolean(true)),
|
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))
|
Commands.either(gyro, Commands.none(),()-> autobalance.getBoolean(true))
|
||||||
)).andThen(new InstantCommand(basePilotable::BrakeOuvre,basePilotable));
|
)).andThen(new InstantCommand(basePilotable::BrakeOuvre,basePilotable));
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user