Class AsymmetricTrapezoidProfile.Constraints
java.lang.Object
org.chsrobotics.lib.trajectory.motionProfile.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 double
Maximum "acceleration" the profile can achieve.final double
Maximum "deceleration" the profile can achieve.final double
Maximum absolute velocity the profile can achieve. -
Constructor Summary
ConstructorsConstructorDescriptionConstraints
(double maxVelocity, double maxAcceleration, double maxDeceleration) Constructs Constraints for a AsymmetricTrapezoidProfile. -
Method Summary
-
Field Details
-
maxVelocity
public final double maxVelocityMaximum absolute velocity the profile can achieve. -
maxAcceleration
public final double maxAccelerationMaximum "acceleration" the profile can achieve. Note that this does not coorespond to "positive" acceleration, just the acceleration at the initial part of the profile. -
maxDeceleration
public final double maxDecelerationMaximum "deceleration" the profile can achieve. Note that this does not coorespond to "negative" acceleration, just the acceleration at the final part of the profile.
-
-
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