CBPCSC#
- class lsst.ts.cbp.CBPCSC(simulation_mode=0, initial_state=State.STANDBY, config_dir=None)#
Bases:
ConfigurableCscThis defines the CBP CSC using ts_salobj.
- Parameters:
simulation_mode (
int, optional) –Supported simulation mode values
0: normal operation
1: mock controller
initial_state (
lsst.ts.salobj.State, optional) – Initial state is meant for unit tests, defaults tolsst.ts.salobj.State.STANDBYconfig_dir (
Noneorstrorpathlib.Path, optional) – Meant for unit tests. Tells the CSC where to look for the configuration files. Normal operation will always be in a configuration repository returnedget_config_dir.
- component#
- Type:
- simulator#
- Type:
NoneorMockServer
- telemetry_task#
- Type:
Attributes Summary
Is all of the axes of the CBP in position.
The valid simulation modes for the CBP.
Methods Summary
Shut down pending tasks.
configure(config)Configure the CSC.
do_changeMask(data)Changes the mask.
do_changeMaskRotation(data)Changes the mask rotation variable and moves the current mask to that rotation value.
do_move(data)Move the CBP mount to a specified position.
do_park(data)Park the CBP.
do_setFocus(data)Sets the focus.
do_unpark(data)Unpark the CBP.
Return the name of the configuration repository.
Handle the summary state.
Wait for all axes of the CBP to be in position.
Publish the updated telemetry.
Attributes Documentation
- position#
Is all of the axes of the CBP in position.
- valid_simulation_modes: Sequence[int] = (0, 1)#
The valid simulation modes for the CBP.
- version = '1.5.3a3.dev6+g424ce2858'#
Methods Documentation
- assert_unparked()#
- async close_tasks()#
Shut down pending tasks. Called by
close.
- async configure(config)#
Configure the CSC.
- Parameters:
config (
types.SimpleNamespace)
- async do_changeMask(data)#
Changes the mask.
- Parameters:
data (
cmd_changeMask.DataType)
- async do_changeMaskRotation(data)#
Changes the mask rotation variable and moves the current mask to that rotation value.
- Parameters:
data (
cmd_changeMaskRotation.DataType)
- async do_move(data)#
Move the CBP mount to a specified position.
- Parameters:
data (
cmd_move.DataType)
- async do_park(data)#
Park the CBP.
- Parameters:
data (
cmd_park.DataType)
- async do_setFocus(data)#
Sets the focus.
- Parameters:
data (
cmd_setFocus.DataType)
- async do_unpark(data)#
Unpark the CBP.
- Parameters:
data (
cmd_unpark.DataType)
- static get_config_pkg()#
Return the name of the configuration repository.
- async handle_summary_state()#
Handle the summary state.
- async in_position()#
Wait for all axes of the CBP to be in position.
In this case, in position is defined as the encoder values being within tolerance to the target values.
- async telemetry()#
Publish the updated telemetry.