This commit is contained in:
Antoine PerreaultE 2023-03-20 19:00:25 -04:00
parent 4cca6b0a91
commit dd3211b6ea

View File

@ -45,7 +45,7 @@ import frc.robot.commands.bras.FermePince;
import frc.robot.commands.bras.MonterPivotBras;
import frc.robot.commands.bras.OuvrePince;
import frc.robot.commands.bras.PivotManuel;
import frc.robot.commands.ActiverLimeLight;
public class RobotContainer {
CommandXboxController manette1 = new CommandXboxController(0);
@ -90,6 +90,7 @@ public class RobotContainer {
Tape tape = new Tape(limelight, basePilotable, () -> manette1.getLeftY());
PivotManuel pivotManuel = new PivotManuel(pivot, manette1::getLeftY);
BrasManuel brasManuel = new BrasManuel(brasTelescopique, manette1::getLeftX);
ActiverLimeLight activerLimeLight = new ActiverLimeLight(limelight);
public RobotContainer() {
chooser.addOption(enhaut, enhaut);
@ -118,6 +119,7 @@ public class RobotContainer {
manette1.povDown().whileTrue(creerCommandBras(9, -14));
manette1.povRight().whileTrue(creerCommandBras(44, -17));
manette1.povLeft().whileTrue(creerCommandBras(0, 0));
manette1.y().whileTrue(activerLimeLight);
//manette 2
manette2.povDown().whileTrue(creerCommandBras(9, -18));
manette2.povUp().whileTrue(creerCommandBras(44, 0));