Merge branch 'master' of https://git.demerso.net/pls5618/2024/betabot-2024
This commit is contained in:
commit
28ceeadfdc
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user