From 14c9fadf0505a312069766b1145986841572dcb7 Mon Sep 17 00:00:00 2001 From: Olivier Demers Date: Tue, 29 Nov 2022 20:47:40 -0500 Subject: [PATCH] BouttonA --- src/main/java/frc/robot/RobotContainer.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/main/java/frc/robot/RobotContainer.java b/src/main/java/frc/robot/RobotContainer.java index 9a16371..67736da 100644 --- a/src/main/java/frc/robot/RobotContainer.java +++ b/src/main/java/frc/robot/RobotContainer.java @@ -10,6 +10,7 @@ import edu.wpi.first.wpilibj2.command.Command; import edu.wpi.first.wpilibj2.command.InstantCommand; import edu.wpi.first.wpilibj2.command.RunCommand; import edu.wpi.first.wpilibj2.command.SequentialCommandGroup; +import edu.wpi.first.wpilibj2.command.WaitCommand; import edu.wpi.first.wpilibj2.command.button.JoystickButton; // subsystems import frc.robot.subsystems.BasePilotable; @@ -65,7 +66,10 @@ public class RobotContainer { */ private void configureButtonBindings() { JoystickButton buttonA = new JoystickButton(manette, XboxController.Button.kA.value); - buttonA.whileHeld(new); + buttonA.whileHeld(new SequentialCommandGroup( + new Activer_poussoir(poussoir).withTimeout(0.5), + new Activershaker(pistonshaker) + )); JoystickButton rightbumper = new JoystickButton(manette, XboxController.Button.kLeftBumper.value); rightbumper.whileHeld(Activershaker); JoystickButton buttonY = new JoystickButton(manette, XboxController.Button.kY.value);