Reset Encodeur accumulateur
This commit is contained in:
parent
c49c666d0b
commit
d36e048781
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user