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