diff --git a/src/main/java/frc/robot/RobotContainer.java b/src/main/java/frc/robot/RobotContainer.java index 390c2a1..8b66343 100644 --- a/src/main/java/frc/robot/RobotContainer.java +++ b/src/main/java/frc/robot/RobotContainer.java @@ -9,7 +9,9 @@ import edu.wpi.first.wpilibj.XboxController; import edu.wpi.first.wpilibj2.command.Command; import edu.wpi.first.wpilibj2.command.Commands; import edu.wpi.first.wpilibj2.command.RunCommand; +import edu.wpi.first.wpilibj2.command.button.CommandXboxController; import edu.wpi.first.wpilibj2.command.button.JoystickButton; +import edu.wpi.first.wpilibj2.command.button.Trigger; //subsystems import frc.robot.subsystems.BasePilotable; import frc.robot.subsystems.Gratte; @@ -57,14 +59,19 @@ public RobotContainer() { configureBindings(); basePilotable.setDefaultCommand(brakeOuvre); - basePilotable.drive(-manette1.getLeftY(), manette1.getLeftX(), -manette1.getLeftTriggerAxis()+manette1.getRightTriggerAxis(), basePilotable); + basePilotable.drive(-manette1.getLeftY(), manette1.getLeftX(), -manette1.getLeftTriggerAxis()+manette1.getRightTriggerAxis()); } private void configureBindings() { + XboxController exampleController = new XboxController(2); + Trigger aButton = new JoystickButton(exampleController, XboxController.Button.kY.value); + + + + + - JoystickButton buttonA = new JoystickButton(manette1, XboxController.Button.kA.value); - buttonA.whenPressed() } public Command getAutonomousCommand() {