Skip to content
This repository was archived by the owner on Dec 6, 2025. It is now read-only.

Commit 075d5b6

Browse files
Formatted code.
Signed-off-by: thenetworkgrinch <[email protected]>
1 parent 2f8c000 commit 075d5b6

File tree

4 files changed

+9
-11
lines changed

4 files changed

+9
-11
lines changed

src/main/java/swervelib/SwerveModule.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,10 @@ public class SwerveModule
3838
* Drive motor velocity cache.
3939
*/
4040
public final Cache<Double> driveVelocityCache;
41+
/**
42+
* Module number for kinematics, usually 0 to 3. front left -> front right -> back left -> back right.
43+
*/
44+
public final int moduleNumber;
4145
/**
4246
* Swerve Motors.
4347
*/
@@ -78,10 +82,6 @@ public class SwerveModule
7882
* NT3 Raw drive motor.
7983
*/
8084
private final String rawDriveVelName;
81-
/**
82-
* Module number for kinematics, usually 0 to 3. front left -> front right -> back left -> back right.
83-
*/
84-
public final int moduleNumber;
8585
/**
8686
* Maximum speed of the drive motors in meters per second.
8787
*/

src/main/java/swervelib/math/SwerveMath.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,7 @@ public static SwerveModuleConfiguration getSwerveModule(
359359
/**
360360
* Put an angle within the 360 deg scope of a reference. For example, given a scope reference of 756 degrees, assumes
361361
* the full scope is (720-1080), and places an angle of 22 degrees into it, returning 742 deg.
362-
*
362+
* <p>
363363
* A more formal definition: returns the closest angle {@code n} to {@code scopeReference} such that {@code n} is
364364
* congruent to {@code newAngle}.
365365
*

src/main/java/swervelib/parser/SwerveDriveConfiguration.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@
1111
public class SwerveDriveConfiguration
1212
{
1313

14+
/**
15+
* Number of modules on the robot.
16+
*/
17+
public final int moduleCount;
1418
/**
1519
* Swerve Module locations.
1620
*/
@@ -19,10 +23,6 @@ public class SwerveDriveConfiguration
1923
* Swerve IMU
2024
*/
2125
public SwerveIMU imu;
22-
/**
23-
* Number of modules on the robot.
24-
*/
25-
public final int moduleCount;
2626
/**
2727
* Swerve Modules.
2828
*/

src/main/java/swervelib/parser/json/PhysicalPropertiesJson.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22

33
import swervelib.parser.SwerveModulePhysicalCharacteristics;
44
import swervelib.parser.json.modules.ConversionFactorsJson;
5-
import swervelib.telemetry.Alert;
6-
import swervelib.telemetry.Alert.AlertType;
75

86
/**
97
* {@link swervelib.parser.SwerveModulePhysicalCharacteristics} parsed data. Used to configure the SwerveModule.

0 commit comments

Comments
 (0)