Package org.chsrobotics.lib.trajectory
Class TrapezoidProfile.Constraints
java.lang.Object
org.chsrobotics.lib.trajectory.TrapezoidProfile.Constraints
- Enclosing class:
TrapezoidProfile
Data class to hold the maximum allowed rates for the output of a TrapezoidProfile.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionConstraints(double maxVelocity, double maxAcceleration) Constructs a TrapezoidProfileConstraints. -
Method Summary
-
Field Details
-
maxVelocity
public final double maxVelocity -
maxAcceleration
public final double maxAcceleration
-
-
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