-
Notifications
You must be signed in to change notification settings - Fork 614
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make TrapezoidProfile.State and ExponentialProfile.State implement StructSerializable #7720
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work! However, this will also need tests and preferably protobuf support as well.
|
||
@Override | ||
public String getTypeName() { | ||
return "TrapezoidProfile.State"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
return "TrapezoidProfile.State"; | |
return "ExponentialProfileState"; |
The type name can't contain .
. Note that Trajectory.State
was named TrajectoryState
in https://github.com/wpilibsuite/allwpilib/blob/main/wpimath/src/main/proto/trajectory.proto>.
|
||
@Override | ||
public String getTypeName() { | ||
return "TrapezoidProfile.State"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
return "TrapezoidProfile.State"; | |
return "TrapezoidProfileState"; |
@@ -129,6 +131,9 @@ public static Constraints fromStateSpace(double maxInput, double A, double B) { | |||
|
|||
/** Profile state. */ | |||
public static class State { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
public static class State { | |
public static class State implements StructSerializable { |
No description provided.