Package org.chsrobotics.lib.trajectory
Class MotionProfile.State
java.lang.Object
org.chsrobotics.lib.trajectory.MotionProfile.State
- Enclosing class:
MotionProfile
Holds the velocity and position states of a MotionProfile at a time in its span.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionState(double position, double velocity) Constructs a State out of a given position and velocity. -
Method Summary
-
Field Details
-
position
public final double position -
velocity
public final double velocity
-
-
Constructor Details
-
State
public State(double position, double velocity) Constructs a State out of a given position and velocity.- Parameters:
position- Position of the profile.velocity- Velocity of the profile.
-
-
Method Details