Skip to content

Commit

Permalink
more formatting fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
narmstro2020 committed Oct 5, 2024
1 parent 102f13a commit 538c01a
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ public static LinearSystem<N2, N1, N2> createDCMotorSystem(double kV, double kA)
* @throws IllegalArgumentException if JKgMetersSquared &lt;= 0.
*/
public static LinearSystem<N2, N1, N2> createDCMotorTorqueSystem(
double JKgMetersSquared, double gearing) {
double JKgMetersSquared) {
if (JKgMetersSquared <= 0.0) {
throw new IllegalArgumentException("J must be greater than zero.");
}
Expand All @@ -373,8 +373,8 @@ public static LinearSystem<N2, N1, N2> createDCMotorTorqueSystem(
* @throws IllegalArgumentException if J &lt;= 0.
*/
public static LinearSystem<N2, N1, N2> createDCMotorTorqueSystem(
MomentOfInertia J, double gearing) {
return createDCMotorTorqueSystem(J.in(KilogramSquareMeters), gearing);
MomentOfInertia J) {
return createDCMotorTorqueSystem(J.in(KilogramSquareMeters));
}

/**
Expand All @@ -387,7 +387,7 @@ public static LinearSystem<N2, N1, N2> createDCMotorTorqueSystem(
* @throws IllegalArgumentException if massKg &lt;= 0, radiusMeters &lt;= 0.
*/
public static LinearSystem<N2, N1, N2> createDCMotorTorqueSystem(
double massKg, double radiusMeters, double gearing) {
double massKg, double radiusMeters) {
if (massKg <= 0.0) {
throw new IllegalArgumentException("massKg must be greater than zero.");
}
Expand Down

0 comments on commit 538c01a

Please sign in to comment.