This commit is contained in:
samuel desharnais 2024-01-18 20:03:26 -05:00
commit ea747a8c86
3 changed files with 11 additions and 5 deletions

View File

@ -11,9 +11,11 @@ public class Constants {
public static int lancer2 = 2; public static int lancer2 = 2;
public static int roue = 3; public static int roue = 3;
public static int etoile = 4; public static int etoile = 4;
public static int Deaccumulationneur1 = 5; public static int Moteuracc2 = 5;
public static int Deaccumulationneur2 = 6; public static int Moteuracc = 6;
public static int guideur = 7; public static int guideur = 7;
// limit switsh // limit switsh
public static int guideurhaut = 8; public static int guideurhaut = 8;
} }

View File

@ -6,14 +6,18 @@ package frc.robot.subsystem;
import com.ctre.phoenix.motorcontrol.can.WPI_TalonSRX; import com.ctre.phoenix.motorcontrol.can.WPI_TalonSRX;
import edu.wpi.first.wpilibj.DigitalInput;
import edu.wpi.first.wpilibj2.command.SubsystemBase; import edu.wpi.first.wpilibj2.command.SubsystemBase;
import frc.robot.Constants; import frc.robot.Constants;
public class Accumulateur extends SubsystemBase { public class Accumulateur extends SubsystemBase {
/** Creates a new Accumulateur. */ /** Creates a new Accumulateur. */
public Accumulateur() {} public Accumulateur() {}
final WPI_TalonSRX Deaccumulationneur1 = new WPI_TalonSRX(Constants.Deaccumulationneur1); final WPI_TalonSRX Moteuracc2 = new WPI_TalonSRX(Constants.Moteuracc2);
final WPI_TalonSRX Deaccumulationneur2 = new WPI_TalonSRX(Constants.Deaccumulationneur2); final WPI_TalonSRX Moteuracc = new WPI_TalonSRX(Constants.Moteuracc);
final DigitalInput limitacc = new DigitalInput(0);
public void Deaccumuler(double vitesse){Moteuracc2.set(vitesse);}
@Override @Override
public void periodic() { public void periodic() {