debug
This commit is contained in:
@ -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;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user