yrjgukfjm
This commit is contained in:
		| @@ -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 | ||||
|   | ||||
| @@ -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 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user