asfdgfhjt
This commit is contained in:
parent
6d9f20d339
commit
5eb83bf7e7
@ -27,6 +27,7 @@ public class Force1 extends CommandBase {
|
|||||||
@Override
|
@Override
|
||||||
public void execute() {
|
public void execute() {
|
||||||
lanceur.lancer(500);
|
lanceur.lancer(500);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Called once the command ends or is interrupted.
|
// Called once the command ends or is interrupted.
|
||||||
|
@ -19,6 +19,8 @@ public class Lanceur extends SubsystemBase {
|
|||||||
lanceur.set(vitesse);
|
lanceur.set(vitesse);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// encodeur
|
// encodeur
|
||||||
public double distance() {
|
public double distance() {
|
||||||
return(lanceur.getEncoder().getPosition());
|
return(lanceur.getEncoder().getPosition());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user