The LinearStage is a CSC for the Vera C. Rubin Observatory. It provides controls for Zaber LST stages.
setup -kr . scons
pip install .[dev] pytest --cov lsst.ts.LinearStage -ra
Run the develop-env
docker image.
pre-commit install
The LinearStage is an indexable component. The index refers to the id of the particular device.
from lsst.ts import salobj linear_stage = salobj.Remote(name="LinearStage", domain=salobj.Domain(), index=1) linear_stage_2 = salobj.Remote(name="LinearStage", domain=salobj.Domain(), index=2) await linear_stage.start_task await linear_stage_2.start_task
await linear_stage.cmd_getHome.set_start(timeout=10) await linear_stage.cmd_moveAbsolute.set_start(distance=10, timeout=10) await linear_stage.cmd_moveRelative.set_start(distance=10, timeout=10) await linear_stage.cmd_stop.set_start(timeout=10) await asyncio.gather(*[linear_stage.cmd_moveAbsolute.set_start(distance=10, timeout=10), linear_stage_2.cmd_moveAbsolute.set_start(distance=10, timeout=10)]
position = await linear_stage.tel_position.aget() print(position.position)
N/A
N/A
N/A
This project is licensed under the GPLv3.