From 5eb83bf7e7b85c0aa88f1fad33fa93c851ef9894 Mon Sep 17 00:00:00 2001 From: Antoine PerreaultE Date: Wed, 1 Nov 2023 19:53:30 -0400 Subject: [PATCH] asfdgfhjt --- src/main/java/frc/robot/commands/Force1.java | 1 + src/main/java/frc/robot/subsystems/Lanceur.java | 2 ++ 2 files changed, 3 insertions(+) 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());