This commit is contained in:
Antoine PerreaultE
2025-03-01 13:53:13 -05:00
parent 30b0ad39f0
commit d1f9d55c3a
19 changed files with 95 additions and 94 deletions

View File

@ -27,11 +27,14 @@ public class CorailAspir extends Command {
// Called every time the scheduler runs while the command is scheduled.
@Override
public void execute() {
if(pince.emperagecoral() > 60){
if(pince.emperagecoral() > 15){
pince.aspirecoral(0);
bougie.Bleu();
}
pince.aspirecoral(0.5);
else{
pince.aspirecoral(0.5);
}
}
// Called once the command ends or is interrupted.
@ -43,6 +46,6 @@ public class CorailAspir extends Command {
// Returns true when the command should end.
@Override
public boolean isFinished() {
return false;
return pince.emperagecoral()>13;
}
}