Class ServoClient

A gRPC-web client for the Servo component.

Implements

Constructors

Properties

client: ServoServiceClient
name: string
options: Options

Accessors

  • get servoService(): ServoServiceClient
  • Returns ServoServiceClient

Methods

  • Return the current set angle of the servo in degrees.

    Parameters

    Returns Promise<number>

  • Return true if the servo is in motion.

    Returns Promise<boolean>

  • Move the servo by a given angle in degrees.

    Parameters

    Returns Promise<void>

  • Stop the servo.

    Parameters

    • extra: {} = {}

      Returns Promise<void>

    Generated using TypeDoc