touche
This commit is contained in:
		| @@ -6,13 +6,27 @@ package frc.robot; | ||||
|  | ||||
| import edu.wpi.first.wpilibj2.command.Command; | ||||
| import edu.wpi.first.wpilibj2.command.Commands; | ||||
| import edu.wpi.first.wpilibj2.command.button.CommandXboxController; | ||||
| import frc.robot.command.AlgueExpire; | ||||
| import frc.robot.command.CoralAlgueInspire; | ||||
| import frc.robot.command.CoralExpire; | ||||
| import frc.robot.subsystems.Elevateur; | ||||
| import frc.robot.subsystems.Pince; | ||||
|  | ||||
| public class RobotContainer { | ||||
|   CommandXboxController manette = new CommandXboxController(0); | ||||
|   Pince pince = new Pince(); | ||||
|   Elevateur elevateur = new Elevateur(); | ||||
|   public RobotContainer() { | ||||
|     configureBindings(); | ||||
|   } | ||||
|  | ||||
|   private void configureBindings() {} | ||||
|   private void configureBindings() { | ||||
|     manette.a().whileTrue(new AlgueExpire(pince)); | ||||
|     manette.b().whileTrue(new CoralAlgueInspire(pince)); | ||||
|     manette.x().whileTrue(new CoralExpire(pince)); | ||||
|     manette.y().whileTrue(new CoralExpire(pince)); | ||||
|   } | ||||
|  | ||||
|   public Command getAutonomousCommand() { | ||||
|     return Commands.print("No autonomous command configured"); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user