From 9d7a0f491ff63c97c9ab9a1e7592907ef8cb6625 Mon Sep 17 00:00:00 2001 From: Antoine PerreaultE Date: Mon, 21 Nov 2022 18:39:10 -0500 Subject: [PATCH] zdsfgh --- .../java/frc/robot/commands/DesactiverBlockeur.java | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/main/java/frc/robot/commands/DesactiverBlockeur.java b/src/main/java/frc/robot/commands/DesactiverBlockeur.java index 5272c73..2ec7bfd 100644 --- a/src/main/java/frc/robot/commands/DesactiverBlockeur.java +++ b/src/main/java/frc/robot/commands/DesactiverBlockeur.java @@ -5,16 +5,24 @@ package frc.robot.commands; import edu.wpi.first.wpilibj2.command.CommandBase; +import frc.robot.subsystems.Poussoir; public class DesactiverBlockeur extends CommandBase { + private Poussoir poussoir /** Creates a new DesactiverBlockeur. */ - public DesactiverBlockeur() { + public DesactiverBlockeur(Poussoir poussoir) { + this.poussoir = poussoir; + + addRequirements(poussoir); // Use addRequirements() here to declare subsystem dependencies. } // Called when the command is initially scheduled. @Override - public void initialize() {} + public void initialize() { + + poussoir.debloque(); + } // Called every time the scheduler runs while the command is scheduled. @Override