Class TrapezoidProfile.Constraints
java.lang.Object
org.chsrobotics.lib.trajectory.motionProfile.TrapezoidProfile.Constraints
- Enclosing class:
- TrapezoidProfile
Data class to hold the maximum allowed rates for the output of a TrapezoidProfile.
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal double
Maximum absolute acceleration the profile can achieve.final double
Maximum absolute velocity the profile can achieve. -
Constructor Summary
ConstructorsConstructorDescriptionConstraints
(double maxVelocity, double maxAcceleration) Constructs a TrapezoidProfileConstraints. -
Method Summary
-
Field Details
-
maxVelocity
public final double maxVelocityMaximum absolute velocity the profile can achieve. -
maxAcceleration
public final double maxAccelerationMaximum absolute acceleration the profile can achieve.
-
-
Constructor Details
-
Constraints
public Constraints(double maxVelocity, double maxAcceleration) Constructs a TrapezoidProfileConstraints.- Parameters:
maxVelocity
- maximum allowed velocity.maxAcceleration
- maximum allowed acceleration (both directions).
-
-
Method Details