voltage_from_power

lsst.ts.atwhitelight.voltage_from_power(power)

Compute voltage to provide to the lamp power input of the KiloArc lamp controller.

Note that the KiloArc quantizes power to in 2.3W steps. That quantization is not handled in this function.

Parameters:
powerfloat

Desired lamp power (W)

Returns:
voltagefloat

The voltage to provide to the lamp power input of the KiloArc lamp controller.

Raises:
lsst.ts.salobj.ExpectedError

If power is not 0 and is not between 800 and 1200W (inclusive).