diff --git a/lib/src/main/java/org/fairportrobotics/frc/robolib/DriveSystems/SwerveDrive/SwerveBuilder.java b/lib/src/main/java/org/fairportrobotics/frc/robolib/DriveSystems/SwerveDrive/SwerveBuilder.java index 96a80f9..3953e9f 100644 --- a/lib/src/main/java/org/fairportrobotics/frc/robolib/DriveSystems/SwerveDrive/SwerveBuilder.java +++ b/lib/src/main/java/org/fairportrobotics/frc/robolib/DriveSystems/SwerveDrive/SwerveBuilder.java @@ -7,6 +7,7 @@ import edu.wpi.first.math.geometry.Translation2d; public class SwerveBuilder { ArrayList modules = new ArrayList(); + String canBusName = ""; private int pigeonId; @@ -19,6 +20,11 @@ public class SwerveBuilder { return this; } + public SwerveBuilder withCanbusName(String canBusname){ + this.canBusName = canBusname; + return this; + } + public SwerveBuilder withSwerveModule(SwerveModule module){ this.modules.add(module); return this; @@ -40,7 +46,6 @@ public class SwerveBuilder { private double steerKD; private int steerEncoderId; private double steerOffset; - private String canBusName; private Translation2d moduleLocation; private double gearRatio; private double wheelDiameterInMeters; @@ -94,11 +99,6 @@ public class SwerveBuilder { return this; } - public SwerveModuleBuilder withCanBusName(String canBusName){ - this.canBusName = canBusName; - return this; - } - public SwerveModuleBuilder withModuleLocation(Translation2d moduleLocation){ this.moduleLocation = moduleLocation; return this;