Class TrapezoidProfile.Constraints

java.lang.Object
edu.wpi.first.math.trajectory.TrapezoidProfile.Constraints
Enclosing class:
TrapezoidProfile

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

    • 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
      maxAcceleration - maximum acceleration
    • Constraints

      public Constraints(Measure<Velocity<U>> maxVelocity, Measure<Velocity<Velocity<U>>> maxAcceleration)
      Constructs constraints for a TrapezoidProfile.
      Type Parameters:
      U - Unit type.
      Parameters:
      maxVelocity - maximum velocity
      maxAcceleration - maximum acceleration