Merge branch 'master' of https://git.demerso.net/pls5618/2024/betabot-2024
This commit is contained in:
commit
8b5842acbb
@ -39,6 +39,6 @@ public class Lancer extends CommandBase {
|
|||||||
// Returns true when the command should end.
|
// Returns true when the command should end.
|
||||||
@Override
|
@Override
|
||||||
public boolean isFinished() {
|
public boolean isFinished() {
|
||||||
return false;
|
return lanceur.distance()>1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -20,7 +20,7 @@ public class Lanceur extends SubsystemBase {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// encodeur
|
// encodeur
|
||||||
public double vitesse() {
|
public double distance() {
|
||||||
return(lanceur.getEncoder().getPosition());
|
return(lanceur.getEncoder().getPosition());
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user