From dd3211b6ea83a2db8162f1d8d9cba4dc17a18b7c Mon Sep 17 00:00:00 2001 From: Antoine PerreaultE Date: Mon, 20 Mar 2023 19:00:25 -0400 Subject: [PATCH] j --- src/main/java/frc/robot/RobotContainer.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/frc/robot/RobotContainer.java b/src/main/java/frc/robot/RobotContainer.java index eef19da..04667cc 100644 --- a/src/main/java/frc/robot/RobotContainer.java +++ b/src/main/java/frc/robot/RobotContainer.java @@ -45,7 +45,7 @@ import frc.robot.commands.bras.FermePince; import frc.robot.commands.bras.MonterPivotBras; import frc.robot.commands.bras.OuvrePince; import frc.robot.commands.bras.PivotManuel; - +import frc.robot.commands.ActiverLimeLight; public class RobotContainer { CommandXboxController manette1 = new CommandXboxController(0); @@ -90,6 +90,7 @@ public class RobotContainer { Tape tape = new Tape(limelight, basePilotable, () -> manette1.getLeftY()); PivotManuel pivotManuel = new PivotManuel(pivot, manette1::getLeftY); BrasManuel brasManuel = new BrasManuel(brasTelescopique, manette1::getLeftX); + ActiverLimeLight activerLimeLight = new ActiverLimeLight(limelight); public RobotContainer() { chooser.addOption(enhaut, enhaut); @@ -118,6 +119,7 @@ public class RobotContainer { manette1.povDown().whileTrue(creerCommandBras(9, -14)); manette1.povRight().whileTrue(creerCommandBras(44, -17)); manette1.povLeft().whileTrue(creerCommandBras(0, 0)); + manette1.y().whileTrue(activerLimeLight); //manette 2 manette2.povDown().whileTrue(creerCommandBras(9, -18)); manette2.povUp().whileTrue(creerCommandBras(44, 0));