This commit is contained in:
samuel desharnais 2024-02-06 18:31:05 -05:00
parent a708aac700
commit f293f07bbd
2 changed files with 2 additions and 2 deletions

View File

@ -58,7 +58,7 @@ public class RobotContainer {
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);
LED LED = new LED(); LED LED = new LED();
AllumeLED allumeLED = new AllumeLED(LED, accumulateur); AllumeLED allumeLED = new AllumeLED(LED);
public RobotContainer() { public RobotContainer() {
NamedCommands.registerCommand("balayer",new Balayer(balayeuse, accumulateur)); NamedCommands.registerCommand("balayer",new Balayer(balayeuse, accumulateur));
NamedCommands.registerCommand("lancer", new LancerNote(lanceur, accumulateur)); NamedCommands.registerCommand("lancer", new LancerNote(lanceur, accumulateur));

View File

@ -15,7 +15,7 @@ public class AllumeLED extends Command {
public AllumeLED(LED led,Accumulateur accumulateur) { public AllumeLED(LED led,Accumulateur accumulateur) {
this.accumulateur = accumulateur; this.accumulateur = accumulateur;
this.led = led; this.led = led;
addRequirements(led,accumulateur); addRequirements(led);
// Use addRequirements() here to declare subsystem dependencies. // Use addRequirements() here to declare subsystem dependencies.
} }