MockPowerSystem¶
- class lsst.ts.m2com.MockPowerSystem(default_voltage: float, default_current: float)¶
Bases:
object
Mock power system to simulate the behavior of hardware.
Parameters¶
- default_voltage
float
Default voltage in volt when the power is on.
- default_current
float
Default current in ampere when the power is on.
Attributes¶
- stateenum
MTM2.PowerSystemState
State of the power system.
Methods Summary
get_power
([rms])Get the power.
Power is on or not.
Power off.
power_on
()Power on.
Wait the power to be fully off.
Wait the power to be fully on.
Methods Documentation
- get_power(rms: float = 0.05) tuple[float, float] ¶
Get the power.
Parameters¶
- rms
float
, optional RMS variation. (the default is 0.05)
Returns¶
float
Voltage in volt.
float
Current in ampere.
- rms
- async power_off() None ¶
Power off.
- async power_on() None ¶
Power on.
- async wait_power_fully_off() None ¶
Wait the power to be fully off.
- async wait_power_fully_on() None ¶
Wait the power to be fully on.
- default_voltage