[wpilibj] Make Java TrapezoidProfile.Constraints an immutable class (#3687)

This commit is contained in:
Tyler Veness
2021-10-28 00:17:36 -07:00
committed by GitHub
parent 187f50a344
commit 8723caf78d
2 changed files with 3 additions and 7 deletions

View File

@@ -77,7 +77,7 @@ class TrapezoidProfileTest {
double lastPos = state.position;
for (int i = 0; i < 1600; ++i) {
if (i == 400) {
constraints.maxVelocity = 0.75;
constraints = new TrapezoidProfile.Constraints(0.75, 0.75);
}
profile = new TrapezoidProfile(constraints, goal, state);