dgxhcgnvmnb,

This commit is contained in:
Antoine PerreaultE 2023-04-11 17:15:23 -04:00
parent 991703ce73
commit 98061f51fd

View File

@ -110,8 +110,8 @@ public class RobotContainer {
private void configureBindings() { private void configureBindings() {
// manette 1 // manette 1
manette1.a().toggleOnTrue(Commands.startEnd(pince::ouvrir, pince::fermer,pince)); manette1.a().toggleOnTrue(Commands.startEnd(pince::ouvrir, pince::fermer,pince));
manette1.x().onTrue(brakeOuvre); manette2.a().onTrue(brakeOuvre);
manette1.b().onTrue(brakeFerme); manette2.b().onTrue(brakeFerme);
manette1.leftBumper().whileTrue(aprilTag); manette1.leftBumper().whileTrue(aprilTag);
manette1.rightBumper().whileTrue(tape); manette1.rightBumper().whileTrue(tape);
manette1.povUp().whileTrue(creerCommandBras(51, -40)); manette1.povUp().whileTrue(creerCommandBras(51, -40));
@ -126,8 +126,8 @@ public class RobotContainer {
manette2.leftBumper().whileTrue(cone); manette2.leftBumper().whileTrue(cone);
manette2.y().whileTrue(gyro); manette2.y().whileTrue(gyro);
manette2.start().onTrue(new InstantCommand(basePilotable::resetGyro)); manette2.start().onTrue(new InstantCommand(basePilotable::resetGyro));
manette2.a().whileTrue(gratteMonte); manette1.b().whileTrue(gratteMonte);
manette2.b().whileTrue(gratteBaisser); manette1.x().whileTrue(gratteBaisser);
} }