This commit is contained in:
2024-11-04 18:24:47 -05:00
parent 8d93e7f24f
commit bf63394d77
4 changed files with 26 additions and 7 deletions

View File

@ -25,7 +25,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.