This commit is contained in:
Antoine PerreaultE 2023-02-13 18:22:49 -05:00
commit ffabc8ae3f
2 changed files with 16 additions and 4 deletions

View File

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

View File

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