This commit is contained in:
samuel desharnais 2024-10-23 19:17:48 -04:00
parent 787251658c
commit 89d155ae5e

View File

@ -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);