From 3308e078d12360ed6e1ef1ce9e15dc7010704671 Mon Sep 17 00:00:00 2001 From: OlivierDubois Date: Thu, 18 Jan 2024 19:45:17 -0500 Subject: [PATCH] --- src/main/java/frc/robot/Constants.java | 4 ++-- src/main/java/frc/robot/subsystem/Accumulateur.java | 6 ++++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/main/java/frc/robot/Constants.java b/src/main/java/frc/robot/Constants.java index e768cda..d3cda37 100644 --- a/src/main/java/frc/robot/Constants.java +++ b/src/main/java/frc/robot/Constants.java @@ -11,6 +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; + public static int Deaccumulationneur1 = 5; + public static int Deaccumulationneur2 = 6; } diff --git a/src/main/java/frc/robot/subsystem/Accumulateur.java b/src/main/java/frc/robot/subsystem/Accumulateur.java index c245d97..13271ad 100644 --- a/src/main/java/frc/robot/subsystem/Accumulateur.java +++ b/src/main/java/frc/robot/subsystem/Accumulateur.java @@ -7,12 +7,14 @@ package frc.robot.subsystem; import com.ctre.phoenix.motorcontrol.can.WPI_TalonSRX; import edu.wpi.first.wpilibj2.command.SubsystemBase; +import frc.robot.Constants; public class Accumulateur extends SubsystemBase { /** Creates a new Accumulateur. */ public Accumulateur() {} - final WPI_TalonSRX Accumulationneur1 = new WPI_TalonSRX(1); - final WPI_TalonSRX Accumulationneur2 = new WPI_TalonSRX(0); + final WPI_TalonSRX Deaccumulationneur1 = new WPI_TalonSRX(Constants.Deaccumulationneur1); + final WPI_TalonSRX Deaccumulationneur2 = new WPI_TalonSRX(Constants.Deaccumulationneur2); + @Override public void periodic() { // This method will be called once per scheduler run