encodeur
This commit is contained in:
parent
787251658c
commit
89d155ae5e
@ -24,7 +24,7 @@ public class Lanceur extends SubsystemBase {
|
||||
final CANSparkMax tourel = new CANSparkMax(2, MotorType.kBrushed);
|
||||
Encoder encoder = new Encoder(0, 1);
|
||||
public void encodeur(double distance){
|
||||
encoder.getDistance();
|
||||
encoder.setDistancePerPulse(distance);
|
||||
}
|
||||
public void lance(double vitesse){
|
||||
lanceur1.set(vitesse);
|
||||
|
Loading…
x
Reference in New Issue
Block a user