From 09cfd458d968f482d468eaff2bef21042e01a5b6 Mon Sep 17 00:00:00 2001 From: Antoine PerreaultE Date: Thu, 22 Feb 2024 17:29:11 -0500 Subject: [PATCH] s --- src/main/java/frc/robot/RobotContainer.java | 9 ++++++--- src/main/java/frc/robot/subsystem/Limelight.java | 2 +- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/src/main/java/frc/robot/RobotContainer.java b/src/main/java/frc/robot/RobotContainer.java index e416f41..d2584fc 100644 --- a/src/main/java/frc/robot/RobotContainer.java +++ b/src/main/java/frc/robot/RobotContainer.java @@ -52,17 +52,20 @@ public class RobotContainer { Guideur guideur = new Guideur(); Lanceur lanceur = new Lanceur(); Limelight limelight = new Limelight(); + + //joystick CommandJoystick joystick = new CommandJoystick(0); CommandXboxController manette = new CommandXboxController(1); + //command - PistonFerme pistonFerme = new PistonFerme(grimpeur); - Balayer balayer = new Balayer(balayeuse, accumulateur); + PistonFerme pistonFerme = new PistonFerme(grimpeur); + Balayer balayer = new Balayer(balayeuse, accumulateur); GuiderHaut guiderHaut = new GuiderHaut(guideur); GuiderBas guiderBas = new GuiderBas(guideur); Lancer lancer = new Lancer(lanceur,limelight); LancerNote lancernote = new LancerNote(lanceur, accumulateur); Lancerampli lancerampli = new Lancerampli(lanceur,limelight); - GrimpeurDroit grimpeurDroit = new GrimpeurDroit(grimpeur, manette::getLeftY); + GrimpeurDroit grimpeurDroit = new GrimpeurDroit(grimpeur, manette::getLeftY); GrimpeurGauche grimpeurGauche = new GrimpeurGauche(grimpeur, manette::getRightY); public RobotContainer() { diff --git a/src/main/java/frc/robot/subsystem/Limelight.java b/src/main/java/frc/robot/subsystem/Limelight.java index e30cae4..a3aa993 100644 --- a/src/main/java/frc/robot/subsystem/Limelight.java +++ b/src/main/java/frc/robot/subsystem/Limelight.java @@ -25,7 +25,7 @@ public class Limelight extends SubsystemBase { public Limelight() { for (int port = 5800; port <= 5807; port++) { PortForwarder.add(port, "limelight.local", port); -} + } } public double getx(){