This commit is contained in:
Olivier Dubois 2024-01-18 19:38:08 -05:00
commit 4d16c87011
2 changed files with 7 additions and 3 deletions

View File

@ -8,6 +8,7 @@ package frc.robot;
public class Constants {
//moteur
public static int lanceur = 1;
public static int roue = 2;
public static int etoile = 3;
public static int lanceur2 = 2;
public static int roue = 3;
public static int etoile = 4;
}

View File

@ -17,9 +17,12 @@ public class Lanceur extends SubsystemBase {
public Lanceur() {}
final CANSparkMax lancer = new CANSparkMax(Constants.lanceur, MotorType.kBrushless);
final CANSparkMax lancer2 = new CANSparkMax(Constants.lanceur2, MotorType.kBrushless);
public void lancer(double vitesse){
lancer.set(vitesse);
}
public void lanceur(){
lancer2.follow(lancer);
}