hmgc b
This commit is contained in:
parent
1ec5ff95b8
commit
43be38bd36
@ -19,6 +19,7 @@ import frc.robot.commands.Activer_poussoir;
|
|||||||
import frc.robot.commands.ActiverBlockeur;
|
import frc.robot.commands.ActiverBlockeur;
|
||||||
import frc.robot.commands.DesactiverBlockeur;
|
import frc.robot.commands.DesactiverBlockeur;
|
||||||
import frc.robot.commands.Reculer;
|
import frc.robot.commands.Reculer;
|
||||||
|
import frc.robot.commands.ResetGyro;
|
||||||
import frc.robot.commands.TournerDroite;
|
import frc.robot.commands.TournerDroite;
|
||||||
import frc.robot.commands.TournerGauche;
|
import frc.robot.commands.TournerGauche;
|
||||||
import frc.robot.commands.Activershaker;
|
import frc.robot.commands.Activershaker;
|
||||||
@ -44,6 +45,7 @@ public class RobotContainer {
|
|||||||
private ActiverBlockeur ActiverBlockeur = new ActiverBlockeur(poussoir);
|
private ActiverBlockeur ActiverBlockeur = new ActiverBlockeur(poussoir);
|
||||||
private Activershaker Activershaker = new Activershaker(pistonshaker);
|
private Activershaker Activershaker = new Activershaker(pistonshaker);
|
||||||
private DesactiverBlockeur DesactiverBlockeur = new DesactiverBlockeur(poussoir);
|
private DesactiverBlockeur DesactiverBlockeur = new DesactiverBlockeur(poussoir);
|
||||||
|
private ResetGyro resetGyro = new ResetGyro(basePilotable);
|
||||||
/** 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
|
||||||
@ -70,6 +72,8 @@ public class RobotContainer {
|
|||||||
buttonY.whenPressed(DesactiverBlockeur);
|
buttonY.whenPressed(DesactiverBlockeur);
|
||||||
JoystickButton buttonX = new JoystickButton(manette, XboxController.Button.kX.value);
|
JoystickButton buttonX = new JoystickButton(manette, XboxController.Button.kX.value);
|
||||||
buttonX.whenPressed(ActiverBlockeur);
|
buttonX.whenPressed(ActiverBlockeur);
|
||||||
|
JoystickButton buttonstart = new JoystickButton(manette, XboxController.Button.kStart.value);
|
||||||
|
buttonstart.whenPressed(resetGyro);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user