diff --git a/wpimath/src/main/java/edu/wpi/first/math/system/plant/LinearSystemId.java b/wpimath/src/main/java/edu/wpi/first/math/system/plant/LinearSystemId.java index bff21492ef..6d8e39a23e 100644 --- a/wpimath/src/main/java/edu/wpi/first/math/system/plant/LinearSystemId.java +++ b/wpimath/src/main/java/edu/wpi/first/math/system/plant/LinearSystemId.java @@ -262,7 +262,7 @@ public final class LinearSystemId { * @see https://github.com/wpilibsuite/sysid */ public static LinearSystem identifyVelocitySystem(double kV, double kA) { - if (kV <= 0.0) { + if (kV < 0.0) { throw new IllegalArgumentException("Kv must be greater than or equal to zero."); } if (kA <= 0.0) { @@ -295,7 +295,7 @@ public final class LinearSystemId { * @see https://github.com/wpilibsuite/sysid */ public static LinearSystem identifyPositionSystem(double kV, double kA) { - if (kV <= 0.0) { + if (kV < 0.0) { throw new IllegalArgumentException("Kv must be greater than or equal to zero."); } if (kA <= 0.0) {