This commit is contained in:
Antoine PerreaultE 2022-11-21 18:39:10 -05:00
parent cfdfe328c9
commit 9d7a0f491f

View File

@ -5,16 +5,24 @@
package frc.robot.commands; package frc.robot.commands;
import edu.wpi.first.wpilibj2.command.CommandBase; import edu.wpi.first.wpilibj2.command.CommandBase;
import frc.robot.subsystems.Poussoir;
public class DesactiverBlockeur extends CommandBase { public class DesactiverBlockeur extends CommandBase {
private Poussoir poussoir
/** Creates a new DesactiverBlockeur. */ /** Creates a new DesactiverBlockeur. */
public DesactiverBlockeur() { public DesactiverBlockeur(Poussoir poussoir) {
this.poussoir = poussoir;
addRequirements(poussoir);
// Use addRequirements() here to declare subsystem dependencies. // Use addRequirements() here to declare subsystem dependencies.
} }
// Called when the command is initially scheduled. // Called when the command is initially scheduled.
@Override @Override
public void initialize() {} public void initialize() {
poussoir.debloque();
}
// Called every time the scheduler runs while the command is scheduled. // Called every time the scheduler runs while the command is scheduled.
@Override @Override