oli me corrige

This commit is contained in:
samuel desharnais 2024-10-28 19:04:46 -04:00
parent b460501b95
commit 938198d4e2

View File

@ -22,7 +22,7 @@ public class Lanceur extends SubsystemBase {
final WPI_TalonSRX lanceur1 = new WPI_TalonSRX(0);
final WPI_TalonSRX lanceur2 = new WPI_TalonSRX(1);
final CANSparkMax tourel = new CANSparkMax(2, MotorType.kBrushed);
final CANSparkMax tourelle = new CANSparkMax(2, MotorType.kBrushed);
public void encodeur(double distance){
lanceur1.configSelectedFeedbackSensor(FeedbackDevice.CTRE_MagEncoder_Relative);
lanceur2.configSelectedFeedbackSensor(FeedbackDevice.CTRE_MagEncoder_Relative);
@ -34,7 +34,7 @@ public class Lanceur extends SubsystemBase {
lanceur2.set(-vitesse);
}
public void tourelRotation(double vitesse){
tourel.set(vitesse);
tourelle.set(vitesse);
}
public void setPID(double p, double i, int d) {
}