Encodeur Accumulateur subsysteme
This commit is contained in:
parent
5ceb50d22c
commit
da8758c4a2
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user