Encodeur Accumulateur subsysteme

This commit is contained in:
Olivier Dubois 2023-10-18 19:43:59 -04:00
parent 5ceb50d22c
commit da8758c4a2

View File

@ -18,7 +18,9 @@ public class Accumulateur extends SubsystemBase {
public void Deaccumuler(double vitesse){
moteuracc.set(vitesse);
}
public double distance() {
return(moteuracc.getEncoder().getPosition());
}
@Override
public void periodic() {
// This method will be called once per scheduler run