Package org.chsrobotics.lib.trajectory
Class ProfilePhase
- java.lang.Object
-
- org.chsrobotics.lib.trajectory.ProfilePhase
-
public class ProfilePhase extends java.lang.ObjectHolds constant-acceleration kinematic rates and time.
-
-
Field Summary
Fields Modifier and Type Field Description doubleaccelerationdoubleinitialVelocitydoublepositiondoubletime
-
Constructor Summary
Constructors Modifier Constructor Description ProfilePhase(double acceleration, double initialVelocity, double time)Constructs a ProfilePhase from a given acceleration, initial velocity, and time.protectedProfilePhase(double time, double position, double acceleration, double initialVelocity)Constructs a ProfilePhase.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object other)inthashCode()java.lang.StringtoString()
-
-
-
Constructor Detail
-
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.
-
ProfilePhase
protected ProfilePhase(double time, double position, double acceleration, double initialVelocity)Constructs a ProfilePhase.- Parameters:
time- The duration of the phase.position- The displacement of the phase.acceleration- The acceleration of the phase (0 if coast phase).initialVelocity- The velocity at the beginning of a phase.
-
-