diff --git a/src/main/java/frc/robot/RobotContainer.java b/src/main/java/frc/robot/RobotContainer.java index 92f0f89..bbe956d 100644 --- a/src/main/java/frc/robot/RobotContainer.java +++ b/src/main/java/frc/robot/RobotContainer.java @@ -56,6 +56,7 @@ public class RobotContainer { CommandXboxController manette1 = new CommandXboxController(0); CommandXboxController manette2 = new CommandXboxController(1); +// dashboard SendableChooser 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);