diff --git a/src/main/java/frc/robot/RobotContainer.java b/src/main/java/frc/robot/RobotContainer.java index 79ac84d..db408d7 100644 --- a/src/main/java/frc/robot/RobotContainer.java +++ b/src/main/java/frc/robot/RobotContainer.java @@ -73,6 +73,6 @@ public class RobotContainer { } public Command getAutonomousCommand() { - return null; + return autoChooser.getSelected(); } } diff --git a/src/main/java/frc/robot/subsystem/Drive.java b/src/main/java/frc/robot/subsystem/Drive.java index c4ea3ad..44bb959 100644 --- a/src/main/java/frc/robot/subsystem/Drive.java +++ b/src/main/java/frc/robot/subsystem/Drive.java @@ -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) {