Interface Servo

Represents a physical servo.

Hierarchy

Implemented by

Properties

Methods

Properties

doCommand: ((command: StructType) => Promise<StructType>)

Type declaration

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

    Returns Promise<void>

Generated using TypeDoc