This commit is contained in:
Antoine PerreaultE 2023-11-01 18:23:52 -04:00
commit 8b5842acbb
2 changed files with 2 additions and 2 deletions

View File

@ -39,6 +39,6 @@ public class Lancer extends CommandBase {
// Returns true when the command should end.
@Override
public boolean isFinished() {
return false;
return lanceur.distance()>1;
}
}

View File

@ -20,7 +20,7 @@ public class Lanceur extends SubsystemBase {
}
// encodeur
public double vitesse() {
public double distance() {
return(lanceur.getEncoder().getPosition());
}