diff --git a/src/main/java/frc/robot/subsystems/Accumulateur.java b/src/main/java/frc/robot/subsystems/Accumulateur.java index 6f139d9..78fc270 100644 --- a/src/main/java/frc/robot/subsystems/Accumulateur.java +++ b/src/main/java/frc/robot/subsystems/Accumulateur.java @@ -22,6 +22,9 @@ public class Accumulateur extends SubsystemBase { 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