Merge branch 'Accumulateur'
This commit is contained in:
commit
c49c666d0b
@ -19,7 +19,9 @@ public class Accumulateur extends SubsystemBase {
|
|||||||
public void Deaccumuler(double vitesse){
|
public void Deaccumuler(double vitesse){
|
||||||
moteuracc.set(vitesse);
|
moteuracc.set(vitesse);
|
||||||
}
|
}
|
||||||
|
public double distance() {
|
||||||
|
return(moteuracc.getEncoder().getPosition());
|
||||||
|
}
|
||||||
@Override
|
@Override
|
||||||
public void periodic() {
|
public void periodic() {
|
||||||
// This method will be called once per scheduler run
|
// This method will be called once per scheduler run
|
||||||
|
Loading…
x
Reference in New Issue
Block a user