Class TrapezoidProfile.Constraints

java.lang.Object
org.wpilib.math.trajectory.TrapezoidProfile.Constraints
All Implemented Interfaces:
StructSerializable, WPISerializable
Enclosing class:
TrapezoidProfile

public static class TrapezoidProfile.Constraints extends Object implements StructSerializable
Profile constraints.
  • Field Details

    • struct

      public static final TrapezoidProfileConstraintsStruct struct
      The struct used to serialize this class.
    • maxVelocity

      public final double maxVelocity
      Maximum velocity.
    • maxAcceleration

      public final double maxAcceleration
      Maximum 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.