This commit is contained in:
EdwardFaucher 2023-03-21 19:49:40 -04:00
parent 4447a2bb9f
commit 65e89a338b
2 changed files with 5 additions and 4 deletions

View File

@ -61,9 +61,9 @@ public class RobotContainer {
.withSize(2, 2).withProperties(Map.of("Label position", "LEFT"));
GenericEntry autobalance = layoutauto.add("choix balance", true).withWidget(BuiltInWidgets.kToggleSwitch).getEntry();
GenericEntry autosortir = layoutauto.add("choix sortir", false).withWidget(BuiltInWidgets.kToggleSwitch).getEntry();
GenericEntry reculerdistances = layoutauto.addPersistent("reculerdistancesortir", 0).getEntry();
GenericEntry reculerdistanceb = layoutauto.addPersistent("reculerdistancebalance", 0).getEntry();
GenericEntry avancerdistance = layoutauto.addPersistent("avancer", 0).getEntry();
GenericEntry reculerdistances = layoutauto.addPersistent("reculerdistancesortir", -66).getEntry();
GenericEntry reculerdistanceb = layoutauto.addPersistent("reculerdistancebalance", -31).getEntry();
GenericEntry avancerdistance = layoutauto.addPersistent("avancer", 35).getEntry();
// subsystems
BasePilotable basePilotable = new BasePilotable();
@ -142,6 +142,7 @@ public class RobotContainer {
return Commands.deadline(
Commands.waitSeconds(14),
new SequentialCommandGroup(
new BrakeFerme(basePilotable),
Commands.select(Map.ofEntries(
Map.entry(enhaut, creerCommandBras(51, -40)),
Map.entry(aumilieux, creerCommandBras(45, -13)),

View File

@ -30,7 +30,7 @@ public class Avancer extends CommandBase {
// Called every time the scheduler runs while the command is scheduled.
@Override
public void execute() {
basePilotable.drive(0.3,0);
basePilotable.drive(0.4,0);
}
// Called once the command ends or is interrupted.