MockInnerLoopController#

class lsst.ts.m2com.MockInnerLoopController#

Bases: object

Mock Inner-Loop Controller (ILC) to simulate the behavior of hardware.

Attributes#

modeenum MTM2.InnerLoopControlMode

mode of ILC.

Attributes Summary

Methods Summary

set_mode(mode)

Set the mode.

set_offset_and_sensitivity(channel, offset, ...)

Set the offset and sensitivity.

Attributes Documentation

DEFAULT_GAIN = 1.455705e-05#
DEFAULT_OFFSET = 0.0#
DEFAULT_SCAN_RATE = 8#
DEFAULT_SENSITIVITY = 1.60876#

Methods Documentation

set_mode(mode: InnerLoopControlMode) None#

Set the mode.

Notes#

This is translated from the SystemController.setILC_Mode.vi used in the simulation mode in ts_mtm2_cell.

Parameters#

modeenum MTM2.InnerLoopControlMode

Inner-loop control mode.

set_offset_and_sensitivity(channel: int, offset: float, sensitivity: float) None#

Set the offset and sensitivity.

Parameters#

channelint

0-based channel (0-3).

offsetfloat

Offset value.

sensitivityfloat

Sensitivity value.