Merge branch 'main' of https://git.demerso.net/pls5618/2024/robot
This commit is contained in:
commit
4d16c87011
@ -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,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);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user