mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-21 01:01:43 +00:00
[wpimath] Give infeasible trajectory constraints a better exception message (#5492)
Fixes #3146.
This commit is contained in:
@@ -271,11 +271,7 @@ public final class TrajectoryParameterizer {
|
||||
if (minMaxAccel.minAccelerationMetersPerSecondSq
|
||||
> minMaxAccel.maxAccelerationMetersPerSecondSq) {
|
||||
throw new TrajectoryGenerationException(
|
||||
"The constraint's min acceleration "
|
||||
+ "was greater than its max acceleration.\n Offending Constraint: "
|
||||
+ constraint.getClass().getName()
|
||||
+ "\n If the offending constraint was packaged with WPILib, please file a bug"
|
||||
+ " report.");
|
||||
"Infeasible trajectory constraint: " + constraint.getClass().getName() + "\n");
|
||||
}
|
||||
|
||||
state.minAccelerationMetersPerSecondSq =
|
||||
|
||||
Reference in New Issue
Block a user