accumu réglé

This commit is contained in:
Olivier Dubois 2024-11-13 19:52:06 -05:00
parent 1facdb07e5
commit 4076c5d368

View File

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