Skip to content

Commit

Permalink
Formatted code.
Browse files Browse the repository at this point in the history
Signed-off-by: thenetworkgrinch <thenetworkgrinch@users.noreply.github.com>
  • Loading branch information
thenetworkgrinch committed Jul 29, 2024
1 parent 2f8c000 commit 075d5b6
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 11 deletions.
8 changes: 4 additions & 4 deletions src/main/java/swervelib/SwerveModule.java
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ public class SwerveModule
* Drive motor velocity cache.
*/
public final Cache<Double> driveVelocityCache;
/**
* Module number for kinematics, usually 0 to 3. front left -> front right -> back left -> back right.
*/
public final int moduleNumber;
/**
* Swerve Motors.
*/
Expand Down Expand Up @@ -78,10 +82,6 @@ public class SwerveModule
* NT3 Raw drive motor.
*/
private final String rawDriveVelName;
/**
* Module number for kinematics, usually 0 to 3. front left -> front right -> back left -> back right.
*/
public final int moduleNumber;
/**
* Maximum speed of the drive motors in meters per second.
*/
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/swervelib/math/SwerveMath.java
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ public static SwerveModuleConfiguration getSwerveModule(
/**
* Put an angle within the 360 deg scope of a reference. For example, given a scope reference of 756 degrees, assumes
* the full scope is (720-1080), and places an angle of 22 degrees into it, returning 742 deg.
*
* <p>
* A more formal definition: returns the closest angle {@code n} to {@code scopeReference} such that {@code n} is
* congruent to {@code newAngle}.
*
Expand Down
8 changes: 4 additions & 4 deletions src/main/java/swervelib/parser/SwerveDriveConfiguration.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@
public class SwerveDriveConfiguration
{

/**
* Number of modules on the robot.
*/
public final int moduleCount;
/**
* Swerve Module locations.
*/
Expand All @@ -19,10 +23,6 @@ public class SwerveDriveConfiguration
* Swerve IMU
*/
public SwerveIMU imu;
/**
* Number of modules on the robot.
*/
public final int moduleCount;
/**
* Swerve Modules.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

import swervelib.parser.SwerveModulePhysicalCharacteristics;
import swervelib.parser.json.modules.ConversionFactorsJson;
import swervelib.telemetry.Alert;
import swervelib.telemetry.Alert.AlertType;

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

0 comments on commit 075d5b6

Please sign in to comment.