This commit is contained in:
Antoine PerreaultE 2023-03-20 18:47:53 -04:00
parent 48af7fa922
commit 56d5b89a19

View File

@ -113,10 +113,10 @@ public class RobotContainer {
manette1.x().toggleOnTrue(Commands.startEnd(basePilotable::BrakeFerme,basePilotable::BrakeOuvre,basePilotable)); manette1.x().toggleOnTrue(Commands.startEnd(basePilotable::BrakeFerme,basePilotable::BrakeOuvre,basePilotable));
manette1.leftBumper().toggleOnTrue(aprilTag); manette1.leftBumper().toggleOnTrue(aprilTag);
manette1.rightBumper().toggleOnTrue(tape); manette1.rightBumper().toggleOnTrue(tape);
manette1.povUp().whileTrue(pivoteBrasHaut); manette1.povUp().whileTrue(creerCommandBras(51, -40));
manette1.povDown().whileTrue(pivoteBrasBas); manette1.povDown().whileTrue(creerCommandBras(0, 0));
manette1.povRight().whileTrue(pivoteBrasMilieux); manette1.povRight().whileTrue(creerCommandBras(0, 0));
manette1.povLeft().whileTrue(pivotBrasRentre); manette1.povLeft().whileTrue(creerCommandBras(0, 0));
//manette 2 //manette 2
manette2.povDown().onTrue(pivotChercheBas); manette2.povDown().onTrue(pivotChercheBas);
manette2.povUp().onTrue(pivotChercheHaut); manette2.povUp().onTrue(pivotChercheHaut);