This commit is contained in:
Antoine PerreaultE 2023-02-15 19:53:33 -05:00
parent d108076593
commit 15fc65d0b8

View File

@ -36,8 +36,8 @@ import frc.robot.commands.bras.PivoteBrasHaut;
import frc.robot.commands.bras.PivoteBrasMilieux; import frc.robot.commands.bras.PivoteBrasMilieux;
public class RobotContainer { public class RobotContainer {
XboxController manette1 = new XboxController(0); CommandXboxController manette1 = new CommandXboxController(0);
XboxController manette2 = new XboxController(1); CommandXboxController manette2 = new CommandXboxController(1);
// subsystems // subsystems
BasePilotable basePilotable = new BasePilotable(); BasePilotable basePilotable = new BasePilotable();
Gratte gratte = new Gratte(); Gratte gratte = new Gratte();
@ -68,8 +68,8 @@ public RobotContainer() {
} }
private void configureBindings() { private void configureBindings() {
manette1.a().toggleOnTrue(Commands.startEnd(pince::ouvrir, pince::fermer,pince));
manette1.x().toggleOnTrue(Commands.startEnd(basePilotable::BrakeFerme,basePilotable::BrakeOuvre,basePilotable));