mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-22 01:11:42 +00:00
[wpilibj] Make Java TrapezoidProfile.Constraints an immutable class (#3687)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user