ProtoTwin API
    Preparing search index...

    Class AccelerometerIO

    Motion Sensor IO.

    Hierarchy (View Summary)

    • IO
      • AccelerometerIO
    Index

    Properties

    component: null | Component

    The component to which the IO is attached.

    The x-axis linear acceleration.

    The y-axis linear acceleration.

    The z-axis linear acceleration.

    Accessors

    • set connections(value: null | IOConnection[]): void

      Parameters

      Returns void

    • get names(): readonly string[]

      The names of all signals.

      Returns readonly string[]

    Methods

    • Connects the input belonging to this IO to an output of the specified component's IO.

      Parameters

      • inputName: string

        The name for the input.

      • outputName: string

        The name for the output belonging to the specified component's IO.

      • outputComponent: null | Component

        The component for the output.

      Returns boolean

      Whether the connection was successfully added.

    • Finds the connection for the specified input, if one exists.

      Parameters

      • inputName: string

        The name for the input.

      Returns null | IOConnection

      The connection for the input, or null if a connection doesn't exist.

    • Disconnects the input belonging to this IO.

      Parameters

      • inputName: string

        The name for the input.

      Returns boolean

      Whether the input was successfully disconnected.

    • Retrieves the signal with the specified name.

      Parameters

      • name: string

        The signal name.

      Returns null | Signal<SignalValueType>

      The found signal, or null if the signal was not found.