diff --git a/src/main/java/frc/robot/RobotContainer.java b/src/main/java/frc/robot/RobotContainer.java index 44a48ea..6df4895 100644 --- a/src/main/java/frc/robot/RobotContainer.java +++ b/src/main/java/frc/robot/RobotContainer.java @@ -58,7 +58,7 @@ public class RobotContainer { GrimpeurDroit grimpeurDroit = new GrimpeurDroit(grimpeur, manette::getLeftX); GrimpeurGauche grimpeurGauche = new GrimpeurGauche(grimpeur, manette::getLeftY); LED LED = new LED(); - AllumeLED allumeLED = new AllumeLED(LED, accumulateur); + AllumeLED allumeLED = new AllumeLED(LED); public RobotContainer() { NamedCommands.registerCommand("balayer",new Balayer(balayeuse, accumulateur)); NamedCommands.registerCommand("lancer", new LancerNote(lanceur, accumulateur)); diff --git a/src/main/java/frc/robot/command/AllumeLED.java b/src/main/java/frc/robot/command/AllumeLED.java index 9ba8c16..484ecb3 100644 --- a/src/main/java/frc/robot/command/AllumeLED.java +++ b/src/main/java/frc/robot/command/AllumeLED.java @@ -15,7 +15,7 @@ public class AllumeLED extends Command { public AllumeLED(LED led,Accumulateur accumulateur) { this.accumulateur = accumulateur; this.led = led; - addRequirements(led,accumulateur); + addRequirements(led); // Use addRequirements() here to declare subsystem dependencies. }