touche requin
This commit is contained in:
		| @@ -7,16 +7,25 @@ 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.BalayeuseAlgue; | ||||
| import frc.robot.command.BalayeuseCoral; | ||||
| import frc.robot.command.BalayeuseHaut; | ||||
| import frc.robot.command.L1Requin; | ||||
| import frc.robot.subsystems.Requin; | ||||
|  | ||||
| public class RobotContainer { | ||||
|   CommandXboxController manette1 = new CommandXboxController(0); | ||||
|   CommandXboxController manette2 = new CommandXboxController(0); | ||||
|   Requin requin = new Requin(); | ||||
|   public RobotContainer() { | ||||
|     configureBindings(); | ||||
|   } | ||||
|  | ||||
|   private void configureBindings() { | ||||
|      | ||||
|     manette2.b().whileTrue(new BalayeuseAlgue(requin)); | ||||
|     manette2.x().whileTrue(new BalayeuseCoral(requin)); | ||||
|     manette2.y().whileTrue(new L1Requin(requin)); | ||||
|     manette2.rightBumper().whileTrue(new BalayeuseHaut(requin)); | ||||
|   } | ||||
|  | ||||
|   public Command getAutonomousCommand() { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user