This commit is contained in:
samuel desharnais 2023-11-15 18:19:27 -05:00
parent ac2d2cf323
commit 9e50ac65b3

View File

@ -11,9 +11,15 @@ import edu.wpi.first.wpilibj2.command.RunCommand;
import edu.wpi.first.wpilibj2.command.SequentialCommandGroup; import edu.wpi.first.wpilibj2.command.SequentialCommandGroup;
import edu.wpi.first.wpilibj2.command.button.CommandXboxController; import edu.wpi.first.wpilibj2.command.button.CommandXboxController;
import edu.wpi.first.wpilibj2.command.button.JoystickButton; import edu.wpi.first.wpilibj2.command.button.JoystickButton;
import frc.robot.commands.Force1;
import frc.robot.subsystems.Accumulateur;
import frc.robot.subsystems.Drive; import frc.robot.subsystems.Drive;
import frc.robot.subsystems.Lanceur;
public class RobotContainer { public class RobotContainer {
Lanceur lanceur = new Lanceur();
Accumulateur accumulateur = new Accumulateur();
Force1 force1 = new Force1();
CommandXboxController manette = new CommandXboxController(0); CommandXboxController manette = new CommandXboxController(0);
Joystick joystick1 = new Joystick(0); Joystick joystick1 = new Joystick(0);
Drive drive = new Drive(); Drive drive = new Drive();
@ -28,7 +34,12 @@ public class RobotContainer {
} }
private void configureBindings() { private void configureBindings() {
JoystickButton button =new JoystickButton(joystick1, 1); JoystickButton button7 = new JoystickButton(joystick1, 7);
JoystickButton button8 = new JoystickButton(joystick1, 8);
JoystickButton button9 = new JoystickButton(joystick1, 9);
JoystickButton button10 = new JoystickButton(joystick1, 10);
JoystickButton button11 = new JoystickButton(joystick1, 11);
JoystickButton button12 = new JoystickButton(joystick1, 12);
} }