balayeuses
This commit is contained in:
		| @@ -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; | ||||
| } | ||||
|   | ||||
| @@ -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); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user