From 89c650e57c61e7159e1c09127d42bb6b4bfb309a Mon Sep 17 00:00:00 2001 From: Antoine PerreaultE Date: Wed, 15 Feb 2023 18:20:54 -0500 Subject: [PATCH] zdgxfhml,; --- src/main/java/frc/robot/RobotContainer.java | 25 ++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/src/main/java/frc/robot/RobotContainer.java b/src/main/java/frc/robot/RobotContainer.java index cccb81d..71542a8 100644 --- a/src/main/java/frc/robot/RobotContainer.java +++ b/src/main/java/frc/robot/RobotContainer.java @@ -4,6 +4,7 @@ package frc.robot; +import edu.wpi.first.wpilibj.XboxController; import edu.wpi.first.wpilibj2.command.Command; import edu.wpi.first.wpilibj2.command.Commands; //subsystems @@ -27,7 +28,29 @@ import frc.robot.commands.bras.PivoteBrasHaut; import frc.robot.commands.bras.PivoteBrasMilieux; public class RobotContainer { - public RobotContainer() { +XboxController manette1 = new XboxController(0); +XboxController manette2 = new XboxController(1); +// subsystems +BasePilotable basePilotable = new BasePilotable(); +Gratte gratte = new Gratte(); +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); +GratteBaisser gratteBaisser = new GratteBaisser(gratte); +GratteMonte gratteMonte = new GratteMonte(gratte); +Gyro gyro = new Gyro(basePilotable); +FermePince fermePince = new FermePince(pince); +OuvrePince ouvrePince = new OuvrePince(pince); +PivotBrasRentre pivotBrasRentre = new PivotBrasRentre(brasTelescopique, pivot); +PivoteBrasBas pivoteBrasBas = new PivoteBrasBas(brasTelescopique, pivot); +PivoteBrasMilieux pivoteBrasMilieux = new PivoteBrasMilieux(brasTelescopique, pivot); +PivoteBrasHaut pivoteBrasHaut = new PivoteBrasHaut(brasTelescopique, pivot); + +public RobotContainer() { configureBindings(); }