From a41957b6b2c99da81a9c3da6376a3719984eb870 Mon Sep 17 00:00:00 2001 From: Antoine PerreaultE Date: Wed, 28 Feb 2024 17:58:59 -0500 Subject: [PATCH] --- src/main/java/frc/robot/RobotContainer.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/frc/robot/RobotContainer.java b/src/main/java/frc/robot/RobotContainer.java index 46aa1d6..6f8f9b0 100644 --- a/src/main/java/frc/robot/RobotContainer.java +++ b/src/main/java/frc/robot/RobotContainer.java @@ -31,6 +31,7 @@ import frc.robot.command.LancerTrape; import frc.robot.command.Lancerampli; import frc.robot.command.Limelight_tracker; import frc.robot.command.RestGyro; +import frc.robot.command.Debalayer; // Subsystems import frc.robot.subsystem.Accumulateur; import frc.robot.subsystem.Balayeuse; @@ -65,6 +66,8 @@ public class RobotContainer { Lancerampli lancerampli = new Lancerampli(lanceur,limelight); GrimpeurDroit grimpeurDroit = new GrimpeurDroit(grimpeur, manette::getLeftY); GrimpeurGauche grimpeurGauche = new GrimpeurGauche(grimpeur, manette::getRightY); + Debalayer debalayer = new Debalayer(balayeuse, accumulateur); + public RobotContainer() { dashboard.addCamera("limelight", "limelight","limelight.local:5800") @@ -94,6 +97,7 @@ public class RobotContainer { joystick.button(2).whileTrue(new ParallelCommandGroup(new Lancerampli(lanceur,limelight),new Limelight_tracker(limelight,drive))); joystick.button(6).whileTrue(new LancerTrape(lanceur, accumulateur)); joystick.button(7).whileTrue(new Limelight_tracker(limelight, drive)); + joystick.button(8).whileTrue(new Debalayer(balayeuse, accumulateur)); // deplacement configureBindings();