diff --git a/src/main/java/frc/robot/subsystems/bras/BrasTelescopique.java b/src/main/java/frc/robot/subsystems/bras/BrasTelescopique.java index 0ba43ff..e10ed52 100644 --- a/src/main/java/frc/robot/subsystems/bras/BrasTelescopique.java +++ b/src/main/java/frc/robot/subsystems/bras/BrasTelescopique.java @@ -29,7 +29,10 @@ public class BrasTelescopique extends SubsystemBase { .withSize(2, 2); /** Creates a new BrasTelescopique. */ - public BrasTelescopique() {} + public BrasTelescopique() { + teb .add("photocell",0.1); + teb .add("winch",0.1); + bras.add ("encodeur",0.1);} final CANSparkMax Winch = new CANSparkMax(Constants.BrasTelescopique,MotorType.kBrushless); private DigitalInput photocell = new DigitalInput(Constants.photocell); private DoubleSolenoid brakewinch = new DoubleSolenoid(PneumaticsModuleType.CTREPCM,Constants.brakewinchf, Constants.brakewinchb); @@ -53,8 +56,6 @@ public class BrasTelescopique extends SubsystemBase { } @Override public void periodic() { - teb .add("photocell",0.1); - teb .add("winch",0.1); - bras.add ("encodeur",0.1); + } } \ No newline at end of file