balayeuses

This commit is contained in:
Olivier Dubois 2024-01-18 19:33:53 -05:00
parent d100093f15
commit ee2c15b63f
2 changed files with 5 additions and 2 deletions

View File

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

View File

@ -9,13 +9,14 @@ import com.ctre.phoenix.motorcontrol.can.WPI_TalonSRX;
import com.revrobotics.CANSparkMax;
import edu.wpi.first.wpilibj2.command.SubsystemBase;
import frc.robot.Constants;
public class Balayeuse extends SubsystemBase {
/** Creates a new Balayeuse. */
public Balayeuse() {}
final WPI_TalonSRX Moteur = new WPI_TalonSRX(0);
final TalonSRX Moteur2 = new TalonSRX(1);
final WPI_TalonSRX Moteur = new WPI_TalonSRX(Constants.Moteur);
final TalonSRX Moteur2 = new TalonSRX(Constants.Moteur2);
public void Accumulation(double vitesse){
Moteur.set(vitesse);