balayeuses
This commit is contained in:
parent
d100093f15
commit
ee2c15b63f
@ -8,4 +8,6 @@ package frc.robot;
|
|||||||
public class Constants {
|
public class Constants {
|
||||||
//moteur
|
//moteur
|
||||||
public static int lanceur = 1;
|
public static int lanceur = 1;
|
||||||
|
public static int roue = 2;
|
||||||
|
public static int etoile = 3;
|
||||||
}
|
}
|
||||||
|
@ -9,13 +9,14 @@ import com.ctre.phoenix.motorcontrol.can.WPI_TalonSRX;
|
|||||||
import com.revrobotics.CANSparkMax;
|
import com.revrobotics.CANSparkMax;
|
||||||
|
|
||||||
import edu.wpi.first.wpilibj2.command.SubsystemBase;
|
import edu.wpi.first.wpilibj2.command.SubsystemBase;
|
||||||
|
import frc.robot.Constants;
|
||||||
|
|
||||||
public class Balayeuse extends SubsystemBase {
|
public class Balayeuse extends SubsystemBase {
|
||||||
/** Creates a new Balayeuse. */
|
/** Creates a new Balayeuse. */
|
||||||
|
|
||||||
public Balayeuse() {}
|
public Balayeuse() {}
|
||||||
final WPI_TalonSRX Moteur = new WPI_TalonSRX(0);
|
final WPI_TalonSRX Moteur = new WPI_TalonSRX(Constants.Moteur);
|
||||||
final TalonSRX Moteur2 = new TalonSRX(1);
|
final TalonSRX Moteur2 = new TalonSRX(Constants.Moteur2);
|
||||||
|
|
||||||
public void Accumulation(double vitesse){
|
public void Accumulation(double vitesse){
|
||||||
Moteur.set(vitesse);
|
Moteur.set(vitesse);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user