ProtoTwin API
    Preparing search index...

    Class PositionControlProfile

    Trapezoidal speed profile for positional control.

    Generates and evaluates a trapezoidal speed profile curve with constant acceleration/deceleration.

    Implements

    Index

    Constructors

    Accessors

    Methods

    Constructors

    Accessors

    • get targetPosition(): number

      The target position.

      Returns number

    • get time(): number

      The total time for the profile.

      Returns number

    Methods

    • Initializes the speed profile curve.

      Parameters

      • targetPosition: number

        The (signed) target position.

      • initialPosition: number

        The (signed) initial position.

      • initialVelocity: number

        The (signed) initial velocity.

      • maximumVelocity: number

        The (unsigned) maximum/target velocity.

      • maximumAcceleration: number

        The (unsigned) maximum/target acceleration.

      • maximumDeceleration: number

        The (unsigned) maximum/target deceleration.

      Returns void

    • Resets the speed profile curve.

      Returns void