Manages all sensor channels.

Hierarchy

  • SensorManager

Constructors

Accessors

  • get channels(): SensorChannel[]
  • Gets the channels managed by the sensor manager.

    Returns SensorChannel[]

  • get renderer(): BaseRenderer
  • Gets the renderer associated with the sensor manager.

    Returns BaseRenderer

Methods

  • Adds a new channel to the sensor manager.

    Parameters

    • name: string
    • low: number = 0
    • high: number = 50
    • factor: number = 1.5

    Returns Promise<SensorChannel>

  • Cleans up the sensor manager by removing all channels.

    Returns Promise<void>

  • Finds a channel by its name.

    Parameters

    • channelName: string

    Returns SensorChannel

  • Finds a group by its name within a specified channel.

    Parameters

    • channelName: string
    • groupName: string

    Returns SensorGroup

  • Finds a sensor by its name within a specified group and channel.

    Parameters

    • channelName: string
    • groupName: string
    • sensorName: string

    Returns Sensor

  • Gets a channel by its name.

    Parameters

    • name: string

    Returns SensorChannel

  • Gets the state of the sensor manager.

    Returns SensorsState

  • Sets the active channel.

    Parameters

    Returns Promise<void>

  • Sets the state of the sensor manager.

    Parameters

    • state: SensorsState

    Returns Promise<void>