From 5b1ddd9236b35bbd0f327d1079c34d0c34a403b9 Mon Sep 17 00:00:00 2001 From: Antoine PerreaultE Date: Wed, 23 Nov 2022 19:26:01 -0500 Subject: [PATCH] f --- src/main/java/frc/robot/commands/BoutonY.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/main/java/frc/robot/commands/BoutonY.java b/src/main/java/frc/robot/commands/BoutonY.java index 2d2b920..c9e1288 100644 --- a/src/main/java/frc/robot/commands/BoutonY.java +++ b/src/main/java/frc/robot/commands/BoutonY.java @@ -5,10 +5,13 @@ package frc.robot.commands; import edu.wpi.first.wpilibj2.command.CommandBase; - +import frc.robot.subsystems.Poussoir; public class BoutonY extends CommandBase { + private Poussoir poussoir; /** Creates a new BoutonY. */ - public BoutonY() { + public BoutonY(Poussoir poussoir) { + this.poussoir = poussoir; + addRequirements(poussoir); // Use addRequirements() here to declare subsystem dependencies. }