Class MotionProfile.State
java.lang.Object
org.chsrobotics.lib.trajectory.motionProfile.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 positionPosition of the profile at this state. -
velocity
public final double velocityVelocity of the profile at this state.
-
-
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