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. }