mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-21 01:01:43 +00:00
[wpilibj] Make Java TrapezoidProfile.Constraints an immutable class (#3687)
This commit is contained in:
@@ -52,14 +52,10 @@ public class TrapezoidProfile {
|
||||
|
||||
public static class Constraints {
|
||||
@SuppressWarnings("MemberName")
|
||||
public double maxVelocity;
|
||||
public final double maxVelocity;
|
||||
|
||||
@SuppressWarnings("MemberName")
|
||||
public double maxAcceleration;
|
||||
|
||||
public Constraints() {
|
||||
MathSharedStore.reportUsage(MathUsageId.kTrajectory_TrapezoidProfile, 1);
|
||||
}
|
||||
public final double maxAcceleration;
|
||||
|
||||
/**
|
||||
* Construct constraints for a TrapezoidProfile.
|
||||
|
||||
Reference in New Issue
Block a user