Class TrapezoidProfile.Constraints
java.lang.Object
org.wpilib.math.trajectory.TrapezoidProfile.Constraints
- All Implemented Interfaces:
StructSerializable, WPISerializable
- Enclosing class:
TrapezoidProfile
Profile constraints.
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal doubleMaximum acceleration.final doubleMaximum velocity.static final TrapezoidProfileConstraintsStructThe struct used to serialize this class. -
Constructor Summary
ConstructorsConstructorDescriptionConstraints(double maxVelocity, double maxAcceleration) Constructs constraints for a TrapezoidProfile. -
Method Summary
-
Field Details
-
struct
The struct used to serialize this class. -
maxVelocity
public final double maxVelocityMaximum velocity. -
maxAcceleration
public final double maxAccelerationMaximum acceleration.
-
-
Constructor Details
-
Constraints
public Constraints(double maxVelocity, double maxAcceleration) Constructs constraints for a TrapezoidProfile.- Parameters:
maxVelocity- Maximum velocity, must be positive.maxAcceleration- Maximum acceleration, must be positive.
-