Skip to content

Commit ab3af00

Browse files
authored
[wpimath] TrapezoidProfile.State implement StructSerializable (wpilibsuite#8499)
Seems like this was missed in wpilibsuite#8163
1 parent 1b2f051 commit ab3af00

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

wpimath/src/main/java/edu/wpi/first/math/trajectory/TrapezoidProfile.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
import edu.wpi.first.math.MathSharedStore;
88
import edu.wpi.first.math.MathUsageId;
99
import edu.wpi.first.math.trajectory.struct.TrapezoidProfileStateStruct;
10+
import edu.wpi.first.util.struct.StructSerializable;
1011
import java.util.Objects;
1112

1213
/**
@@ -76,7 +77,7 @@ public Constraints(double maxVelocity, double maxAcceleration) {
7677
}
7778

7879
/** Profile state. */
79-
public static class State {
80+
public static class State implements StructSerializable {
8081
/** The struct used to serialize this class. */
8182
public static final TrapezoidProfileStateStruct struct = new TrapezoidProfileStateStruct();
8283

0 commit comments

Comments
 (0)