mode auto

This commit is contained in:
samuel desharnais 2024-02-01 19:30:02 -05:00
parent 76c55bf984
commit 55537b2e83
2 changed files with 4 additions and 2 deletions

View File

@ -73,6 +73,6 @@ public class RobotContainer {
}
public Command getAutonomousCommand() {
return null;
return autoChooser.getSelected();
}
}

View File

@ -6,6 +6,9 @@ package frc.robot.subsystem;
import java.io.File;
import java.io.IOException;
import edu.wpi.first.math.geometry.Translation2d;
import edu.wpi.first.math.kinematics.SwerveModulePosition;
import edu.wpi.first.wpilibj.Filesystem;
@ -25,7 +28,6 @@ public class Drive extends SubsystemBase {
}
public Drive() {
try {
this.swerveDrive = new SwerveParser(swerveJsonDirectory).createSwerveDrive(2);
} catch (IOException e) {