diff --git a/src/main/java/frc/robot/RobotContainer.java b/src/main/java/frc/robot/RobotContainer.java index 8ecee90..ce8b1e7 100644 --- a/src/main/java/frc/robot/RobotContainer.java +++ b/src/main/java/frc/robot/RobotContainer.java @@ -9,7 +9,13 @@ import edu.wpi.first.wpilibj.XboxController; import edu.wpi.first.wpilibj2.command.Command; import edu.wpi.first.wpilibj2.command.RunCommand; +import frc.robot.commands.ActiverBlockeur; +import frc.robot.commands.Activer_poussoir; +import frc.robot.commands.Activershaker; +import frc.robot.commands.DesactiverBlockeur; import frc.robot.subsystems.BasePilotable; +import frc.robot.subsystems.Pistonshaker; +import frc.robot.subsystems.Poussoir; /** * This class is where the bulk of the robot should be declared. Since Command-based is a @@ -23,6 +29,13 @@ public class RobotContainer { BasePilotable basePilotable = new BasePilotable(); + private Pistonshaker pistonshaker = new Pistonshaker(); + private Poussoir poussoir = new Poussoir(); + + private Activer_poussoir activer_poussoir = new Activer_poussoir(poussoir); + private ActiverBlockeur activerBlockeur = new ActiverBlockeur(poussoir); + private Activershaker activershaker = new Activershaker(pistonshaker); + private DesactiverBlockeur desactiverBlockeur = new DesactiverBlockeur(poussoir); /** The container for the robot. Contains subsystems, OI devices, and commands. */ public RobotContainer() { // Configure the button bindings