From 99584ce12f6d17cb307549904968c8c0e597cf8e Mon Sep 17 00:00:00 2001 From: samuel desharnais Date: Thu, 18 Jan 2024 20:12:49 -0500 Subject: [PATCH] --- src/main/java/frc/robot/subsystem/Guideur.java | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/src/main/java/frc/robot/subsystem/Guideur.java b/src/main/java/frc/robot/subsystem/Guideur.java index 4c29dc4..e276197 100644 --- a/src/main/java/frc/robot/subsystem/Guideur.java +++ b/src/main/java/frc/robot/subsystem/Guideur.java @@ -14,8 +14,17 @@ 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); - private DigitalInput guideurbas = new DigitalInput(Constants.guideurhaut); + final DigitalInput guideurhaut = new DigitalInput(Constants.guideurhaut); + final DigitalInput guideurbas = new DigitalInput(Constants.guideurhaut); + public void guider(double vitesse){ + guideur.set(vitesse); + } + public boolean haut(){ + return guideurhaut.get(); + } + public boolean bas(){ + return guideurbas.get(); + } @Override public void periodic() { // This method will be called once per scheduler run