drgf
This commit is contained in:
parent
633ebb0ac9
commit
b5a40e219b
@ -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;
|
||||
}
|
||||
}
|
||||
|
@ -20,7 +20,7 @@ public class Lanceur extends SubsystemBase {
|
||||
}
|
||||
|
||||
// encodeur
|
||||
public double vitesse() {
|
||||
public double distance() {
|
||||
return(lanceur.getEncoder().getPosition());
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user