diff --git a/src/main/java/frc/robot/commands/Force1.java b/src/main/java/frc/robot/commands/Force1.java index dc20f55..6878de5 100644 --- a/src/main/java/frc/robot/commands/Force1.java +++ b/src/main/java/frc/robot/commands/Force1.java @@ -27,6 +27,7 @@ public class Force1 extends CommandBase { @Override public void execute() { lanceur.lancer(500); + } // Called once the command ends or is interrupted. diff --git a/src/main/java/frc/robot/subsystems/Lanceur.java b/src/main/java/frc/robot/subsystems/Lanceur.java index f37e57f..d8d4344 100644 --- a/src/main/java/frc/robot/subsystems/Lanceur.java +++ b/src/main/java/frc/robot/subsystems/Lanceur.java @@ -19,6 +19,8 @@ public class Lanceur extends SubsystemBase { lanceur.set(vitesse); } + + // encodeur public double distance() { return(lanceur.getEncoder().getPosition());