Encodeur lanceur
This commit is contained in:
parent
07e299ad9f
commit
3bc3f849da
@ -18,10 +18,16 @@ public class Lanceur extends SubsystemBase {
|
||||
public void lancer(double vitesse){
|
||||
lanceur.set(vitesse);
|
||||
}
|
||||
// Encodeur
|
||||
// public double distance(){
|
||||
// return(lanceur.getEncoder().getPosition());
|
||||
// }
|
||||
|
||||
// encodeur
|
||||
public double vitesse() {
|
||||
return(lanceur.getEncoder().getPosition());
|
||||
|
||||
}
|
||||
public void Reset() {
|
||||
lanceur.getEncoder().setPosition(0);
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public void periodic() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user