This commit is contained in:
samuel desharnais 2023-11-28 19:02:47 -05:00
parent b79c35e0ba
commit 98c1c4e3f7
2 changed files with 2 additions and 2 deletions

View File

@ -35,6 +35,6 @@ public class Avancer extends CommandBase {
// Returns true when the command should end.
@Override
public boolean isFinished() {
return false;
return drive.distance()[0].distanceMeters>1;
}
}

View File

@ -33,6 +33,6 @@ public class Reculer extends CommandBase {
// Returns true when the command should end.
@Override
public boolean isFinished() {
return false;
return drive.distance()[0].distanceMeters>1;
}
}