Package org.chsrobotics.lib.trajectory
Class AsymmetricTrapezoidProfile.Constraints
java.lang.Object
org.chsrobotics.lib.trajectory.AsymmetricTrapezoidProfile.Constraints
- Enclosing class:
AsymmetricTrapezoidProfile
A data class to hold the maximum allowable rates for the output of a
AsymmetricTrapezoidProfile.
Because of the number of cases this profile has to handle, acceleration and deceleration don't coorespond to acceleration in a specific direction, or towards higher/lower absolute values. It's probably best to think of them as the acceleration constraint for the first phase of motion, and deceleration constraint for the final phase of motion.
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal doublefinal doublefinal double -
Constructor Summary
ConstructorsConstructorDescriptionConstraints(double maxVelocity, double maxAcceleration, double maxDeceleration) Constructs Constraints for a AsymmetricTrapezoidProfile. -
Method Summary
-
Field Details
-
maxVelocity
public final double maxVelocity -
maxAcceleration
public final double maxAcceleration -
maxDeceleration
public final double maxDeceleration
-
-
Constructor Details
-
Constraints
public Constraints(double maxVelocity, double maxAcceleration, double maxDeceleration) Constructs Constraints for a AsymmetricTrapezoidProfile.- Parameters:
maxVelocity- maximum velocity.maxAcceleration- maximum acceleration.maxDeceleration- maximum deceleration.
-
-
Method Details