Class EncoderClient

A gRPC-web client for the Encoder component.

Implements

Constructors

Properties

client: EncoderServiceClient
name: string
options: Options

Accessors

  • get encoderService(): EncoderServiceClient
  • Returns EncoderServiceClient

Methods

  • Return the current position either in relative units (ticks away from a zero position) or absolute units (degrees along a circle).

    Parameters

    • positionType: EncoderPositionType = EncoderPositionType.POSITION_TYPE_UNSPECIFIED

      The type of position the encoder returns (ticks or degrees)

    • extra: {} = {}

      Returns Promise<readonly [number, 0 | 1 | 2]>

    • Set the current position of the encoder as the new zero position.

      Parameters

      • extra: {} = {}

        Returns Promise<void>

      Generated using TypeDoc