This commit is contained in:
Antoine PerreaultE 2023-10-18 19:48:22 -04:00
commit 28ceeadfdc

View File

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