Class TrapezoidProfile.Constraints

java.lang.Object
org.chsrobotics.lib.trajectory.TrapezoidProfile.Constraints
Enclosing class:
TrapezoidProfile

public static class TrapezoidProfile.Constraints extends Object
Data class to hold the maximum allowed rates for the output of a TrapezoidProfile.
  • 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