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