From c486972c55bc8ac2186fe4da102efacb58b16d8b Mon Sep 17 00:00:00 2001 From: Tyler Veness Date: Tue, 2 Jan 2024 11:39:55 -0800 Subject: [PATCH] [wpimath] Make ExponentialProfile.State mutable (#6138) It was already mutable in the C++ ExponentialProfile and TrapezoidProfile in both languages. --- .../edu/wpi/first/math/trajectory/ExponentialProfile.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/wpimath/src/main/java/edu/wpi/first/math/trajectory/ExponentialProfile.java b/wpimath/src/main/java/edu/wpi/first/math/trajectory/ExponentialProfile.java index 1580e853c7..505b47ca4e 100644 --- a/wpimath/src/main/java/edu/wpi/first/math/trajectory/ExponentialProfile.java +++ b/wpimath/src/main/java/edu/wpi/first/math/trajectory/ExponentialProfile.java @@ -113,9 +113,11 @@ public class ExponentialProfile { } public static class State { - public final double position; + public double position; - public final double velocity; + public double velocity; + + public State() {} /** * Construct a state within an exponential profile.