From f7388256d05deadce39afb8aa3ebea81fab4c72c Mon Sep 17 00:00:00 2001 From: Antoine PerreaultE Date: Wed, 18 Oct 2023 19:48:20 -0400 Subject: [PATCH 1/2] ajout encodeur Lanceur --- src/main/java/frc/robot/subsystems/Lanceur.java | 4 ++++ 1 file changed, 4 insertions(+) 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() { From 23b219c5ad9464d6f0f3f990cf01e3c985f4d6e4 Mon Sep 17 00:00:00 2001 From: samuel desharnais Date: Wed, 18 Oct 2023 20:00:02 -0400 Subject: [PATCH 2/2] ughkj --- src/main/java/frc/robot/subsystems/Drive.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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 + } }