zdsfgh
This commit is contained in:
parent
cfdfe328c9
commit
9d7a0f491f
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user