diff --git a/src/main/java/frc/robot/subsystems/Accumulateur.java b/src/main/java/frc/robot/subsystems/Accumulateur.java index 46b02ae..78fc270 100644 --- a/src/main/java/frc/robot/subsystems/Accumulateur.java +++ b/src/main/java/frc/robot/subsystems/Accumulateur.java @@ -19,7 +19,12 @@ public class Accumulateur extends SubsystemBase { public void Deaccumuler(double vitesse){ moteuracc.set(vitesse); } - + public double distance() { + return(moteuracc.getEncoder().getPosition()); + } + public void Reset() { + moteuracc.getEncoder().setPosition(0); + } @Override public void periodic() { // This method will be called once per scheduler run