Skip to content

Commit 2394afe

Browse files
committed
REFACTOR: Swerve subsystem directory should be full lowercase
1 parent 8b1c5b7 commit 2394afe

File tree

9 files changed

+23
-23
lines changed

9 files changed

+23
-23
lines changed

src/main/java/wmironpatriots/subsystems/Swerve/Swerve.java

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
// Open Source Software; you can modify and/or share it under the terms of
55
// MIT license file in the root directory of this project
66

7-
package wmironpatriots.subsystems.Swerve;
7+
package wmironpatriots.subsystems.swerve;
88

99
import static edu.wpi.first.units.Units.MetersPerSecond;
1010
import static edu.wpi.first.units.Units.RadiansPerSecond;
@@ -28,12 +28,12 @@
2828
import java.util.function.DoubleSupplier;
2929
import wmironpatriots.Constants;
3030
import wmironpatriots.Robot;
31-
import wmironpatriots.subsystems.Swerve.gyro.GyroHardware;
32-
import wmironpatriots.subsystems.Swerve.gyro.GyroHardwareComp;
33-
import wmironpatriots.subsystems.Swerve.gyro.GyroHardwareNone;
34-
import wmironpatriots.subsystems.Swerve.module.Module;
35-
import wmironpatriots.subsystems.Swerve.module.ModuleHardwareComp;
36-
import wmironpatriots.subsystems.Swerve.module.ModuleHardwareSim;
31+
import wmironpatriots.subsystems.swerve.gyro.GyroHardware;
32+
import wmironpatriots.subsystems.swerve.gyro.GyroHardwareComp;
33+
import wmironpatriots.subsystems.swerve.gyro.GyroHardwareNone;
34+
import wmironpatriots.subsystems.swerve.module.Module;
35+
import wmironpatriots.subsystems.swerve.module.ModuleHardwareComp;
36+
import wmironpatriots.subsystems.swerve.module.ModuleHardwareSim;
3737

3838
public class Swerve implements Subsystem {
3939
public static Swerve create() {
@@ -131,8 +131,8 @@ public Command driveFromMagnitudes(
131131
angularRateMagnitude.getAsDouble()
132132
* SwerveConstants.MAX_ANGULAR_RATE.in(RadiansPerSecond),
133133
DriverStation.getAlliance().orElse(Alliance.Blue) == Alliance.Blue
134-
? getHeadingRotation2d()
135-
: getHeadingRotation2d().plus(Rotation2d.k180deg))));
134+
? getHeadingRotation2d()
135+
: getHeadingRotation2d().plus(Rotation2d.k180deg))));
136136
}
137137

138138
public Command stopAndLock() {

src/main/java/wmironpatriots/subsystems/Swerve/SwerveConstants.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
// Open Source Software; you can modify and/or share it under the terms of
55
// MIT license file in the root directory of this project
66

7-
package wmironpatriots.subsystems.Swerve;
7+
package wmironpatriots.subsystems.swerve;
88

99
import static edu.wpi.first.units.Units.FeetPerSecond;
1010
import static edu.wpi.first.units.Units.Inches;

src/main/java/wmironpatriots/subsystems/Swerve/gyro/GyroHardware.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
// Open Source Software; you can modify and/or share it under the terms of
55
// MIT license file in the root directory of this project
66

7-
package wmironpatriots.subsystems.Swerve.gyro;
7+
package wmironpatriots.subsystems.swerve.gyro;
88

99
import edu.wpi.first.math.geometry.Rotation3d;
1010

src/main/java/wmironpatriots/subsystems/Swerve/gyro/GyroHardwareComp.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
// Open Source Software; you can modify and/or share it under the terms of
55
// MIT license file in the root directory of this project
66

7-
package wmironpatriots.subsystems.Swerve.gyro;
7+
package wmironpatriots.subsystems.swerve.gyro;
88

99
import com.ctre.phoenix6.hardware.Pigeon2;
1010
import edu.wpi.first.math.geometry.Rotation3d;

src/main/java/wmironpatriots/subsystems/Swerve/gyro/GyroHardwareNone.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
// Open Source Software; you can modify and/or share it under the terms of
55
// MIT license file in the root directory of this project
66

7-
package wmironpatriots.subsystems.Swerve.gyro;
7+
package wmironpatriots.subsystems.swerve.gyro;
88

99
import edu.wpi.first.math.geometry.Rotation3d;
1010

src/main/java/wmironpatriots/subsystems/Swerve/module/Module.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
// Open Source Software; you can modify and/or share it under the terms of
55
// MIT license file in the root directory of this project
66

7-
package wmironpatriots.subsystems.Swerve.module;
7+
package wmironpatriots.subsystems.swerve.module;
88

99
import edu.wpi.first.math.geometry.Rotation2d;
1010
import edu.wpi.first.math.kinematics.SwerveModulePosition;
1111
import edu.wpi.first.math.kinematics.SwerveModuleState;
1212
import lib.utils.MonologueUtils;
13-
import wmironpatriots.subsystems.Swerve.module.ModuleHardware.LoggableState;
13+
import wmironpatriots.subsystems.swerve.module.ModuleHardware.LoggableState;
1414

1515
public class Module {
1616
private final ModuleHardware hardware;

src/main/java/wmironpatriots/subsystems/Swerve/module/ModuleHardware.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
// Open Source Software; you can modify and/or share it under the terms of
55
// MIT license file in the root directory of this project
66

7-
package wmironpatriots.subsystems.Swerve.module;
7+
package wmironpatriots.subsystems.swerve.module;
88

99
/** Generalized hardware methods for a swerve-module's hardware */
1010
public interface ModuleHardware {

src/main/java/wmironpatriots/subsystems/Swerve/module/ModuleHardwareComp.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
// Open Source Software; you can modify and/or share it under the terms of
55
// MIT license file in the root directory of this project
66

7-
package wmironpatriots.subsystems.Swerve.module;
7+
package wmironpatriots.subsystems.swerve.module;
88

99
import static edu.wpi.first.units.Units.Meters;
1010

@@ -22,8 +22,8 @@
2222
import com.ctre.phoenix6.signals.NeutralModeValue;
2323
import com.ctre.phoenix6.signals.SensorDirectionValue;
2424
import lib.utils.TalonFxUtil;
25-
import wmironpatriots.subsystems.Swerve.SwerveConstants;
26-
import wmironpatriots.subsystems.Swerve.SwerveConstants.ModuleConfig;
25+
import wmironpatriots.subsystems.swerve.SwerveConstants;
26+
import wmironpatriots.subsystems.swerve.SwerveConstants.ModuleConfig;
2727

2828
/**
2929
* Represents a Swerve module with the following specifications:

src/main/java/wmironpatriots/subsystems/Swerve/module/ModuleHardwareSim.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
// Open Source Software; you can modify and/or share it under the terms of
55
// MIT license file in the root directory of this project
66

7-
package wmironpatriots.subsystems.Swerve.module;
7+
package wmironpatriots.subsystems.swerve.module;
88

99
import static edu.wpi.first.units.Units.Meters;
1010
import static edu.wpi.first.units.Units.Seconds;
@@ -16,8 +16,8 @@
1616
import edu.wpi.first.math.system.plant.LinearSystemId;
1717
import edu.wpi.first.wpilibj.simulation.DCMotorSim;
1818
import wmironpatriots.Constants;
19-
import wmironpatriots.subsystems.Swerve.SwerveConstants;
20-
import wmironpatriots.subsystems.Swerve.SwerveConstants.ModuleConfig;
19+
import wmironpatriots.subsystems.swerve.SwerveConstants;
20+
import wmironpatriots.subsystems.swerve.SwerveConstants.ModuleConfig;
2121

2222
public class ModuleHardwareSim implements ModuleHardware {
2323
public static final double PIVOT_REDUCTION = 150 / 7;
@@ -31,7 +31,7 @@ public class ModuleHardwareSim implements ModuleHardware {
3131
private final DCMotorSim pivotSim, driveSim;
3232
private double pivotAppliedVolts, driveAppliedVolts;
3333

34-
private PIDController pivotFeedback = new PIDController(50.0, 0.0, 0.0);
34+
private PIDController pivotFeedback = new PIDController(100.0, 0.0, 0.0);
3535
private PIDController driveFeedback = new PIDController(3.2, 0.0, 0.0);
3636
private SimpleMotorFeedforward driveFeedforward = new SimpleMotorFeedforward(0.233, 2.02, 0.05);
3737

0 commit comments

Comments
 (0)