From 97c2e585f491d405e3f0a4af6030c99b71a37b95 Mon Sep 17 00:00:00 2001 From: OlivierDubois Date: Thu, 18 Jan 2024 19:42:25 -0500 Subject: [PATCH] constant --- src/main/java/frc/robot/Constants.java | 3 ++- src/main/java/frc/robot/subsystem/Lanceur.java | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/java/frc/robot/Constants.java b/src/main/java/frc/robot/Constants.java index 2e5dbfb..e768cda 100644 --- a/src/main/java/frc/robot/Constants.java +++ b/src/main/java/frc/robot/Constants.java @@ -11,5 +11,6 @@ public class Constants { public static int lancer2 = 2; public static int roue = 3; public static int etoile = 4; - + public static int Accumulationneur1 = 5; + public static int Accumulationneur2 = 6; } diff --git a/src/main/java/frc/robot/subsystem/Lanceur.java b/src/main/java/frc/robot/subsystem/Lanceur.java index d869035..dc7ee09 100644 --- a/src/main/java/frc/robot/subsystem/Lanceur.java +++ b/src/main/java/frc/robot/subsystem/Lanceur.java @@ -17,7 +17,7 @@ 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); + final CANSparkMax lancer2 = new CANSparkMax(Constants.lancer2, MotorType.kBrushless); public void lancer(double vitesse){ lancer.set(vitesse); }