diff --git a/src/main/java/frc/robot/RobotContainer.java b/src/main/java/frc/robot/RobotContainer.java index f1768c6..5acd59c 100644 --- a/src/main/java/frc/robot/RobotContainer.java +++ b/src/main/java/frc/robot/RobotContainer.java @@ -19,6 +19,7 @@ import frc.robot.commands.Activer_poussoir; import frc.robot.commands.ActiverBlockeur; import frc.robot.commands.DesactiverBlockeur; import frc.robot.commands.Reculer; +import frc.robot.commands.ResetGyro; import frc.robot.commands.TournerDroite; import frc.robot.commands.TournerGauche; import frc.robot.commands.Activershaker; @@ -44,6 +45,7 @@ public class RobotContainer { private ActiverBlockeur ActiverBlockeur = new ActiverBlockeur(poussoir); private Activershaker Activershaker = new Activershaker(pistonshaker); private DesactiverBlockeur DesactiverBlockeur = new DesactiverBlockeur(poussoir); + private ResetGyro resetGyro = new ResetGyro(basePilotable); /** The container for the robot. Contains subsystems, OI devices, and commands. */ public RobotContainer() { // Configure the button bindings @@ -70,6 +72,8 @@ public class RobotContainer { buttonY.whenPressed(DesactiverBlockeur); JoystickButton buttonX = new JoystickButton(manette, XboxController.Button.kX.value); buttonX.whenPressed(ActiverBlockeur); + JoystickButton buttonstart = new JoystickButton(manette, XboxController.Button.kStart.value); + buttonstart.whenPressed(resetGyro); } /**