Class ProfilePhase
java.lang.Object
org.chsrobotics.lib.trajectory.motionProfile.ProfilePhase
Holds constant-acceleration kinematic rates and time.
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal doubleAcceleration through the phase.final doubleVelocity of the phase at its start.final doubleChange in position through the phase.final doubleTime to complete the phase. -
Constructor Summary
ConstructorsConstructorDescriptionProfilePhase(double acceleration, double initialVelocity, double time) Constructs a ProfilePhase from a given acceleration, initial velocity, and time. -
Method Summary
-
Field Details
-
time
public final double timeTime to complete the phase. -
position
public final double positionChange in position through the phase. -
acceleration
public final double accelerationAcceleration through the phase. -
initialVelocity
public final double initialVelocityVelocity of the phase at its start.
-
-
Constructor Details
-
ProfilePhase
public ProfilePhase(double acceleration, double initialVelocity, double time) Constructs a ProfilePhase from a given acceleration, initial velocity, and time.- Parameters:
acceleration- The acceleration throughout this phase.initialVelocity- The velocity at the start of the phase.time- The duration of the phase.
-
-
Method Details