This commit is contained in:
Olivier Dubois 2023-10-24 18:05:46 -04:00
commit dfbedc1b46
2 changed files with 10 additions and 1 deletions

View File

@ -4,14 +4,19 @@
package frc.robot.subsystems; 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 { public class Drive extends SubsystemBase {
File swerveJsonDirectory = new File(Filesystem.getDeployDirectory(),"swerve");
/** Creates a new Drive. */ /** Creates a new Drive. */
public Drive() {} public Drive() {}
@Override @Override
public void periodic() { public void periodic() {
// This method will be called once per scheduler run // This method will be called once per scheduler run
} }
} }

View File

@ -18,6 +18,10 @@ public class Lanceur extends SubsystemBase {
public void lancer(double vitesse){ public void lancer(double vitesse){
lanceur.set(vitesse); lanceur.set(vitesse);
} }
// Encodeur
// public double distance(){
// return(lanceur.getEncoder().getPosition());
// }
@Override @Override
public void periodic() { public void periodic() {