From 3fc0ece6387a9191f45047cfb683e5e8eeedcc29 Mon Sep 17 00:00:00 2001 From: samuel desharnais Date: Thu, 18 Jan 2024 20:02:37 -0500 Subject: [PATCH] --- src/main/java/frc/robot/Constants.java | 3 +++ .../java/frc/robot/subsystem/Guideur.java | 22 +++++++++++++++++++ 2 files changed, 25 insertions(+) create mode 100644 src/main/java/frc/robot/subsystem/Guideur.java diff --git a/src/main/java/frc/robot/Constants.java b/src/main/java/frc/robot/Constants.java index d3cda37..a364bc8 100644 --- a/src/main/java/frc/robot/Constants.java +++ b/src/main/java/frc/robot/Constants.java @@ -13,4 +13,7 @@ public class Constants { public static int etoile = 4; public static int Deaccumulationneur1 = 5; public static int Deaccumulationneur2 = 6; + public static int guideur = 7; + // limit switsh + public static int guideurhaut = 8; } diff --git a/src/main/java/frc/robot/subsystem/Guideur.java b/src/main/java/frc/robot/subsystem/Guideur.java new file mode 100644 index 0000000..386d816 --- /dev/null +++ b/src/main/java/frc/robot/subsystem/Guideur.java @@ -0,0 +1,22 @@ +// Copyright (c) FIRST and other WPILib contributors. +// Open Source Software; you can modify and/or share it under the terms of +// the WPILib BSD license file in the root directory of this project. + +package frc.robot.subsystem; + +import com.ctre.phoenix.motorcontrol.can.WPI_TalonSRX; + +import edu.wpi.first.wpilibj.DigitalInput; +import edu.wpi.first.wpilibj2.command.SubsystemBase; +import frc.robot.Constants; + +public class Guideur extends SubsystemBase { + /** Creates a new Guideur. */ + public Guideur() {} + final WPI_TalonSRX guideur = new WPI_TalonSRX(Constants.guideur); + private DigitalInput guideurhaut = new DigitalInput(Constants.guideurhaut); + @Override + public void periodic() { + // This method will be called once per scheduler run + } +}