TelemetryTopicHandler#

class lsst.ts.mtmount.TelemetryTopicHandler(topic, field_dict, preprocessor=None)#

Bases: object

Coroutine functor that takes a telemetry message from the low-level controller and outputs the associated SAL telemetry message.

Parameters:
  • topic (salobj.topics.ControllerTelemetry) – SAL telemetry topic.

  • field_dict (dict) – Dicts of SAL topic field name: low-level message field name

  • preprocessor (callable or None, optional) – Function to preprocess the low-level message.

Methods Summary

__call__(data_dict)

Process one low-level message.

Methods Documentation

async __call__(data_dict)#

Process one low-level message.

Parameters:

data_dict (dict) – Dict of field name: value. Note: if there is preprocessor, this will be modified in place.