diff --git a/src/main/java/frc/robot/subsystems/Drive.java b/src/main/java/frc/robot/subsystems/Drive.java index a559e06..d73f6e4 100644 --- a/src/main/java/frc/robot/subsystems/Drive.java +++ b/src/main/java/frc/robot/subsystems/Drive.java @@ -4,14 +4,19 @@ package frc.robot.subsystems; -import edu.wpi.first.wpilibj2.command.SubsystemBase; +import java.io.File; +import edu.wpi.first.wpilibj.Filesystem; +import edu.wpi.first.wpilibj2.command.SubsystemBase; public class Drive extends SubsystemBase { + File swerveJsonDirectory = new File(Filesystem.getDeployDirectory(),"swerve"); + /** Creates a new Drive. */ public Drive() {} @Override public void periodic() { // This method will be called once per scheduler run + } } diff --git a/src/main/java/frc/robot/subsystems/Lanceur.java b/src/main/java/frc/robot/subsystems/Lanceur.java index de24340..1c61716 100644 --- a/src/main/java/frc/robot/subsystems/Lanceur.java +++ b/src/main/java/frc/robot/subsystems/Lanceur.java @@ -18,6 +18,10 @@ public class Lanceur extends SubsystemBase { public void lancer(double vitesse){ lanceur.set(vitesse); } + // Encodeur + // public double distance(){ + // return(lanceur.getEncoder().getPosition()); + // } @Override public void periodic() {