Merge branch 'main' of https://demerso.net/pls5618/2023/robot
This commit is contained in:
		| @@ -5,16 +5,22 @@ | |||||||
| package frc.robot.commands.bras; | package frc.robot.commands.bras; | ||||||
|  |  | ||||||
| import edu.wpi.first.wpilibj2.command.CommandBase; | import edu.wpi.first.wpilibj2.command.CommandBase; | ||||||
|  | import frc.robot.subsystems.bras.Pince; | ||||||
|  |  | ||||||
| public class FermePince extends CommandBase { | public class FermePince extends CommandBase { | ||||||
|  |   private Pince pince; | ||||||
|   /** Creates a new FermePince. */ |   /** Creates a new FermePince. */ | ||||||
|   public FermePince() { |   public FermePince(Pince pince) { | ||||||
|  |     this.pince = pince; | ||||||
|     // Use addRequirements() here to declare subsystem dependencies. |     // Use addRequirements() here to declare subsystem dependencies. | ||||||
|  |     addRequirements(pince); | ||||||
|   } |   } | ||||||
|  |  | ||||||
|   // Called when the command is initially scheduled. |   // Called when the command is initially scheduled. | ||||||
|   @Override |   @Override | ||||||
|   public void initialize() {} |   public void initialize() { | ||||||
|  |     pince.fermer(); | ||||||
|  |   } | ||||||
|  |  | ||||||
|   // Called every time the scheduler runs while the command is scheduled. |   // Called every time the scheduler runs while the command is scheduled. | ||||||
|   @Override |   @Override | ||||||
|   | |||||||
| @@ -5,16 +5,22 @@ | |||||||
| package frc.robot.commands.bras; | package frc.robot.commands.bras; | ||||||
|  |  | ||||||
| import edu.wpi.first.wpilibj2.command.CommandBase; | import edu.wpi.first.wpilibj2.command.CommandBase; | ||||||
|  | import frc.robot.subsystems.bras.Pince; | ||||||
|  |  | ||||||
| public class OuvrePince extends CommandBase { | public class OuvrePince extends CommandBase { | ||||||
|  |   private Pince pince; | ||||||
|   /** Creates a new OuvrePince. */ |   /** Creates a new OuvrePince. */ | ||||||
|   public OuvrePince() { |   public OuvrePince(Pince pince) { | ||||||
|  |     this.pince = pince; | ||||||
|     // Use addRequirements() here to declare subsystem dependencies. |     // Use addRequirements() here to declare subsystem dependencies. | ||||||
|  |     addRequirements(pince); | ||||||
|   } |   } | ||||||
|  |  | ||||||
|   // Called when the command is initially scheduled. |   // Called when the command is initially scheduled. | ||||||
|   @Override |   @Override | ||||||
|   public void initialize() {} |   public void initialize() { | ||||||
|  |     pince.ouvrir(); | ||||||
|  |   } | ||||||
|  |  | ||||||
|   // Called every time the scheduler runs while the command is scheduled. |   // Called every time the scheduler runs while the command is scheduled. | ||||||
|   @Override |   @Override | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user