Class TrapezoidProfile.ProfileTiming

java.lang.Object
org.wpilib.math.trajectory.TrapezoidProfile.ProfileTiming
Enclosing class:
TrapezoidProfile

public static class TrapezoidProfile.ProfileTiming extends Object
Profile Timing.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    double
    The time the profile spends in the first leg.
    double
    The time the profile spends at the velocity limit.
    double
    The time the profile spends in the last leg.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Zero initializes the timing object for a Trapezoid Profile.
    ProfileTiming(double t_1, double t_2, double t_3)
    Constructs the timing object for a Trapezoid Profile.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    equals(Object other)
     
    int
     

    Methods inherited from class Object

    clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • t_1

      public double t_1
      The time the profile spends in the first leg.
    • t_2

      public double t_2
      The time the profile spends at the velocity limit.
    • t_3

      public double t_3
      The time the profile spends in the last leg.
  • Constructor Details

    • ProfileTiming

      public ProfileTiming(double t_1, double t_2, double t_3)
      Constructs the timing object for a Trapezoid Profile.
      Parameters:
      t_1 - The time the profile spends on the first leg.
      t_2 - The time the profile spends at the velocity limit.
      t_3 - the time the profile spends on the last leg.
    • ProfileTiming

      public ProfileTiming()
      Zero initializes the timing object for a Trapezoid Profile.
  • Method Details