From 83d20b577d1e563b0485934ef034ccba9be3f3ab Mon Sep 17 00:00:00 2001 From: samuel desharnais Date: Mon, 22 Jan 2024 18:42:19 -0500 Subject: [PATCH] 4 moteur lanceur --- src/main/java/frc/robot/Constants.java | 18 ++++++++++-------- src/main/java/frc/robot/subsystem/Lanceur.java | 2 ++ 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/src/main/java/frc/robot/Constants.java b/src/main/java/frc/robot/Constants.java index 04557d8..9f9f786 100644 --- a/src/main/java/frc/robot/Constants.java +++ b/src/main/java/frc/robot/Constants.java @@ -9,14 +9,16 @@ public class Constants { //moteur public static int lanceur = 1; public static int lancer2 = 2; - public static int roue = 3; - public static int etoile = 4; - public static int Moteuracc2 = 5; - public static int Moteuracc = 6; - public static int guideur = 7; + public static int lanceur3 = 3; + public static int lancer4 = 4; + public static int roue = 5; + public static int etoile = 6; + public static int Moteuracc2 = 7; + public static int Moteuracc = 8; + public static int guideur = 9; // limit switsh - public static int guideurhaut = 8; - public static int guideurbas = 9; - public static int limitacc = 58; + public static int guideurhaut = 10; + public static int guideurbas = 11; + public static int limitacc = 12; } diff --git a/src/main/java/frc/robot/subsystem/Lanceur.java b/src/main/java/frc/robot/subsystem/Lanceur.java index dc7ee09..6433d05 100644 --- a/src/main/java/frc/robot/subsystem/Lanceur.java +++ b/src/main/java/frc/robot/subsystem/Lanceur.java @@ -18,6 +18,8 @@ public class Lanceur extends SubsystemBase { public Lanceur() {} final CANSparkMax lancer = new CANSparkMax(Constants.lanceur, MotorType.kBrushless); final CANSparkMax lancer2 = new CANSparkMax(Constants.lancer2, MotorType.kBrushless); + final CANSparkMax lancer3 = new CANSparkMax(Constants.lanceur, MotorType.kBrushless); + final CANSparkMax lancer4 = new CANSparkMax(Constants.lancer2, MotorType.kBrushless); public void lancer(double vitesse){ lancer.set(vitesse); }