This commit is contained in:
Olivier Dubois 2024-02-12 19:13:25 -05:00
parent db3c800ae1
commit 63aad0f693
2 changed files with 2 additions and 2 deletions

View File

@ -71,7 +71,7 @@ public class RobotContainer {
Lancerampli lancerampli = new Lancerampli(lanceur,limelight); Lancerampli lancerampli = new Lancerampli(lanceur,limelight);
GrimpeurDroit grimpeurDroit = new GrimpeurDroit(grimpeur, manette::getLeftX); GrimpeurDroit grimpeurDroit = new GrimpeurDroit(grimpeur, manette::getLeftX);
GrimpeurGauche grimpeurGauche = new GrimpeurGauche(grimpeur, manette::getLeftY); GrimpeurGauche grimpeurGauche = new GrimpeurGauche(grimpeur, manette::getLeftY);
AllumeLED allumeLED = new AllumeLED(LED); AllumeLED allumeLED = new AllumeLED(LED,accumulateur);
Pistongrimpeur pistongrimpeur = new Pistongrimpeur(grimpeur, LED); Pistongrimpeur pistongrimpeur = new Pistongrimpeur(grimpeur, LED);
public RobotContainer() { public RobotContainer() {
dashboard.addCamera("limelight", "limelight","limelight.local:5800"); dashboard.addCamera("limelight", "limelight","limelight.local:5800");

View File

@ -12,7 +12,7 @@ public class AllumeLED extends Command {
private LED led; private LED led;
private Accumulateur accumulateur; private Accumulateur accumulateur;
/** Creates a new AllumeLED. */ /** Creates a new AllumeLED. */
public AllumeLED(LED led) { public AllumeLED(LED led,Accumulateur accumulateur) {
this.accumulateur = accumulateur; this.accumulateur = accumulateur;
this.led = led; this.led = led;
addRequirements(led); addRequirements(led);