2e moteur lanceur
This commit is contained in:
parent
1738953740
commit
03e342a0a0
@ -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;
|
||||
}
|
||||
|
@ -17,10 +17,13 @@ public class Lanceur extends SubsystemBase {
|
||||
|
||||
public Lanceur() {}
|
||||
final CANSparkMax lancer = new CANSparkMax(Constants.lanceur, MotorType.kBrushless);
|
||||
final CANSparkMax lancer2 = 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);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user