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 bff21492ef9..6d8e39a23e0 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 static LinearSystem createSingleJointedArmSystem( * @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 static LinearSystem identifyVelocitySystem(double kV, double * @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) {