pour les touches

This commit is contained in:
Olivier Dubois 2022-11-23 18:46:52 -05:00
parent f683282775
commit aff5567642

View File

@ -9,7 +9,13 @@ import edu.wpi.first.wpilibj.XboxController;
import edu.wpi.first.wpilibj2.command.Command; import edu.wpi.first.wpilibj2.command.Command;
import edu.wpi.first.wpilibj2.command.RunCommand; 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.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 * 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(); 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. */ /** The container for the robot. Contains subsystems, OI devices, and commands. */
public RobotContainer() { public RobotContainer() {
// Configure the button bindings // Configure the button bindings