From c93da60343b8810f6391280759f99f9dcc7ff690 Mon Sep 17 00:00:00 2001 From: OlivierDubois Date: Mon, 19 Feb 2024 20:04:33 -0500 Subject: [PATCH] sortir mon dashboard des commentaires de sam --- src/main/java/frc/robot/RobotContainer.java | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/main/java/frc/robot/RobotContainer.java b/src/main/java/frc/robot/RobotContainer.java index c560d69..ca73994 100644 --- a/src/main/java/frc/robot/RobotContainer.java +++ b/src/main/java/frc/robot/RobotContainer.java @@ -73,16 +73,17 @@ public class RobotContainer { public RobotContainer() { dashboard.addCamera("limelight", "limelight","limelight.local:5800") .withSize(3,4) - .withPosition(7,0); + .withPosition(7,0); + dashboard.addCamera("USB Camera 0", "USB Camera 0","http://roborio-5618-frc.local:1181/?action=stream") + .withSize(4, 4) + .withPosition(3, 0); NamedCommands.registerCommand("balayer",new Balayer(balayeuse, accumulateur)); NamedCommands.registerCommand("lancer", new LancerNote(lanceur, accumulateur)); NamedCommands.registerCommand("piston", new PistonFerme(grimpeur)); autoChooser = AutoBuilder.buildAutoChooser(); /*manette.a().whileTrue(new GuiderBas(guideur)); - dashboard.addCamera("USB Camera 0", "USB Camera 0","http://roborio-5618-frc.local:1181/?action=stream") - .withSize(4, 4) - .withPosition(3, 0); + manette.a().whileTrue(new GuiderBas(guideur)); manette.b().whileTrue(new GuiderHaut(guideur)); @@ -107,9 +108,10 @@ public class RobotContainer { ,grimpeur)); LED.setDefaultCommand(allumeLED); + */ dashboard.add("autochooser",autoChooser) .withSize(2,1) - .withPosition(1,1);*/ + .withPosition(1,1); manette .a() .and(manette.rightBumper())