asfdgfhjt

This commit is contained in:
Antoine PerreaultE 2023-11-01 19:53:30 -04:00
parent 6d9f20d339
commit 5eb83bf7e7
2 changed files with 3 additions and 0 deletions

View File

@ -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.

View File

@ -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());