diff --git a/src/main/java/frc/robot/RobotContainer.java b/src/main/java/frc/robot/RobotContainer.java index d50e4e5..77a4d65 100644 --- a/src/main/java/frc/robot/RobotContainer.java +++ b/src/main/java/frc/robot/RobotContainer.java @@ -113,10 +113,10 @@ public class RobotContainer { manette1.x().toggleOnTrue(Commands.startEnd(basePilotable::BrakeFerme,basePilotable::BrakeOuvre,basePilotable)); manette1.leftBumper().toggleOnTrue(aprilTag); manette1.rightBumper().toggleOnTrue(tape); - manette1.povUp().whileTrue(pivoteBrasHaut); - manette1.povDown().whileTrue(pivoteBrasBas); - manette1.povRight().whileTrue(pivoteBrasMilieux); - manette1.povLeft().whileTrue(pivotBrasRentre); + manette1.povUp().whileTrue(creerCommandBras(51, -40)); + manette1.povDown().whileTrue(creerCommandBras(0, 0)); + manette1.povRight().whileTrue(creerCommandBras(0, 0)); + manette1.povLeft().whileTrue(creerCommandBras(0, 0)); //manette 2 manette2.povDown().onTrue(pivotChercheBas); manette2.povUp().onTrue(pivotChercheHaut);