Class MotionProfile.State

java.lang.Object
org.chsrobotics.lib.trajectory.motionProfile.MotionProfile.State
Enclosing class:
MotionProfile

public static class MotionProfile.State extends Object
Holds the velocity and position states of a MotionProfile at a time in its span.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    final double
    Position of the profile at this state.
    final double
    Velocity of the profile at this state.
  • Constructor Summary

    Constructors
    Constructor
    Description
    State(double position, double velocity)
    Constructs a State out of a given position and velocity.
  • Method Summary

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

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • position

      public final double position
      Position of the profile at this state.
    • velocity

      public final double velocity
      Velocity of the profile at this state.
  • Constructor Details

    • State

      public State(double position, double velocity)
      Constructs a State out of a given position and velocity.
      Parameters:
      position - Position of the profile.
      velocity - Velocity of the profile.
  • Method Details