il grimpe mieux

This commit is contained in:
Antoine PerreaultE
2025-01-28 17:51:17 -05:00
parent 9653ca7205
commit 7e40328af4
3 changed files with 53 additions and 2 deletions

View File

@ -22,6 +22,12 @@ public class Grimpeur extends SubsystemBase {
public boolean stop(){
return limit1.get();
}
public double encodeur(){
return grimpeur.getEncoder().getPosition();
}
public void reset(){
grimpeur.getEncoder().setPosition(0);
}
@Override
public void periodic() {
// This method will be called once per scheduler run