Skip to content

Commit

Permalink
[wpimath] Feed forwards: Use correct 'k' value in error message (wpil…
Browse files Browse the repository at this point in the history
  • Loading branch information
fodfodfod authored Feb 11, 2024
1 parent da3abad commit 1e168f3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public ArmFeedforward(double ks, double kg, double kv, double ka) {
throw new IllegalArgumentException("kv must be a non-negative number, got " + kv + "!");
}
if (ka < 0.0) {
throw new IllegalArgumentException("ka must be a non-negative number, got " + kv + "!");
throw new IllegalArgumentException("ka must be a non-negative number, got " + ka + "!");
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public ElevatorFeedforward(double ks, double kg, double kv, double ka) {
throw new IllegalArgumentException("kv must be a non-negative number, got " + kv + "!");
}
if (ka < 0.0) {
throw new IllegalArgumentException("ka must be a non-negative number, got " + kv + "!");
throw new IllegalArgumentException("ka must be a non-negative number, got " + ka + "!");
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public SimpleMotorFeedforward(double ks, double kv, double ka) {
throw new IllegalArgumentException("kv must be a non-negative number, got " + kv + "!");
}
if (ka < 0.0) {
throw new IllegalArgumentException("ka must be a non-negative number, got " + kv + "!");
throw new IllegalArgumentException("ka must be a non-negative number, got " + ka + "!");
}
}

Expand Down

0 comments on commit 1e168f3

Please sign in to comment.