Class MotionProfile.State

java.lang.Object
org.chsrobotics.lib.trajectory.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 Details

    • position

      public final double position
    • velocity

      public final double velocity
  • 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