k
This commit is contained in:
parent
8ba1721503
commit
ee40b0a976
@ -56,6 +56,7 @@ public class RobotContainer {
|
||||
CommandXboxController manette1 = new CommandXboxController(0);
|
||||
CommandXboxController manette2 = new CommandXboxController(1);
|
||||
|
||||
// dashboard
|
||||
SendableChooser<String> chooser = new SendableChooser<>();
|
||||
String enhaut = "en haut";
|
||||
String aumilieux = "au milieux";
|
||||
@ -68,6 +69,7 @@ GenericEntry autosortir = layoutauto.add("choix sortir",false).withWidget(BuiltI
|
||||
GenericEntry reculerdistances = layoutauto.addPersistent("reculerdistancesortir",0).getEntry();
|
||||
GenericEntry reculerdistanceb = layoutauto.addPersistent("reculerdistancebalance", 0).getEntry();
|
||||
GenericEntry avancerdistance = layoutauto.addPersistent("avancer",0).getEntry();
|
||||
|
||||
// subsystems
|
||||
BasePilotable basePilotable = new BasePilotable();
|
||||
Gratte gratte = new Gratte();
|
||||
@ -75,6 +77,7 @@ BrasTelescopique brasTelescopique = new BrasTelescopique();
|
||||
Pince pince = new Pince();
|
||||
Pivot pivot = new Pivot();
|
||||
Limelight limelight = new Limelight();
|
||||
|
||||
//commands
|
||||
BrakeFerme brakeFerme = new BrakeFerme(basePilotable);
|
||||
BrakeOuvre brakeOuvre = new BrakeOuvre(basePilotable);
|
||||
@ -134,7 +137,7 @@ public RobotContainer() {
|
||||
manette2.b().whileTrue(gratteBaisser);
|
||||
|
||||
}
|
||||
|
||||
//mode auto
|
||||
public Command getAutonomousCommand() {
|
||||
chooser.getSelected();
|
||||
autobalance.getBoolean(true);
|
||||
|
Loading…
x
Reference in New Issue
Block a user