This commit is contained in:
Antoine
2024-11-04 18:53:46 -05:00
5 changed files with 39 additions and 10 deletions

View File

@ -22,7 +22,8 @@ public class Desaccumuler extends Command {
// Called every time the scheduler runs while the command is scheduled.
@Override
public void execute() {
accumulateur.desaccumule(0.1);
if(accumulateur.photocell()){accumulateur.desaccumule(0.1);}
}
// Called once the command ends or is interrupted.
@Override