Class ExponentialProfile.State

java.lang.Object
org.wpilib.math.trajectory.ExponentialProfile.State
All Implemented Interfaces:
StructSerializable, WPISerializable
Enclosing class:
ExponentialProfile

public static class ExponentialProfile.State extends Object implements StructSerializable
Profile state.
  • Field Details

    • struct

      public static final ExponentialProfileStateStruct struct
      The struct that serializes this class.
    • position

      public double position
      The position at this state.
    • velocity

      public double velocity
      The velocity at this state.
  • Constructor Details

    • State

      public State()
      Default constructor.
    • State

      public State(double position, double velocity)
      Constructs a state within an exponential profile.
      Parameters:
      position - The position at this state.
      velocity - The velocity at this state.
  • Method Details