MirrorCoverLocksDevice

class lsst.ts.MTMount.mock.MirrorCoverLocksDevice(controller)

Bases: lsst.ts.MTMount.mock.point_to_point_device.PointToPointDevice

Mirror cover locks.

Supports all commands except MOVE and MOVE_VELOCITY.

Unlike the real system, the drive argument must always be -1 (meaning all drives). That suffices for the CSC.

Parameters:
controller : MockController

Mock controller.

Attributes Summary

all_command_names

Methods Summary

add_methods() Add do_methods to the command dict
assert_drive_all(command) Assert that the drive argument is -1 (all drives).
close()
do_close(command)
do_move(command)
do_move_all(command)
do_move_velocity(command)
do_open(command)
do_power(command)
do_reset_alarm(command)
do_stop(command) Stop the actuator.
monitor_move_command(command) Monitor motion and report a move command as done.
move(position, command) Move to the specified position.
supersede_move_command() Report the current move command (if any) as superseded.

Attributes Documentation

all_command_names = {'ELEVATION_AXIS_ENABLE_TRACKING', 'AZIMUTH_AXIS_STOP', 'OIL_SUPPLY_SYSTEM_POWER_COOLING', 'MIRROR_COVER_LOCKS_STOP', 'TOP_END_CHILLER_TRACK_AMBIENT', 'AZIMUTH_CABLE_WRAP_MOVE_VELOCITY', 'BALANCE_RESET_ALARM', 'AZIMUTH_CABLE_WRAP_DRIVE_RESET', 'STAND_BY', 'APPLICATION_EXIT', 'BOTH_AXES_MOVE', 'AZIMUTH_THERMAL_TRACK_AMBIENT', 'AZIMUTH_AXIS_DRIVE_RESET', 'ENCODER_INTERFACE_BOX_EXIT', 'MIRROR_COVERS_RESET_ALARM', 'DEPLOYABLE_PLATFORM_LOCK_EXTENSION', 'ELEVATION_AXIS_DRIVE_ENABLE', 'AZIMUTH_AXIS_RESET_ALARM', 'CAMERA_CABLE_WRAP_RESET_ALARM', 'MIRROR_COVERS_STOP', 'CAMERA_CABLE_WRAP_TRACK', 'STOP_MOUNT', 'CLEAR_ERRORS', 'STATE_INFO', 'TOP_END_CHILLER_POWER', 'ENCODER_INTERFACE_BOX_POWER', 'ELEVATION_AXIS_POWER', 'AZIMUTH_CABLE_WRAP_TRACK', 'SAFETY_RESET', 'OIL_SUPPLY_SYSTEM_RESET_ALARM', 'AZIMUTH_CABLE_WRAP_DRIVE_ENABLE', 'MIRROR_COVERS_OPEN', 'MOVE_TO_TARGET', 'AZIMUTH_AXIS_MOVE', 'ELEVATION_THERMAL_TRACK_AMBIENT', 'BALANCE_MOVE', 'SYSTEM_READY', 'OIL_SUPPLY_SYSTEM_POWER', 'MIRROR_COVER_LOCKS_POWER', 'TRANSFER_FUNCTION_ELEVATION_EXCITATION', 'PXI_COMMAND_DONE', 'LOCKING_PINS_RESET_ALARM', 'ELEVATION_AXIS_MOVE_VELOCITY', 'MIRROR_COVER_LOCKS_MOVE', 'CLOSE_MIRROR_COVER', 'CAMERA_CABLE_WRAP_MOVE', 'AZIMUTH_AXIS_HOME', 'ELEVATION_AXIS_STOP', 'LOCKING_PINS_MOVE_ALL', 'AZIMUTH_CABLE_WRAP_ENABLE_TRACKING', 'ERROR', 'ELEVATION_AXIS_RESET_ALARM', 'MIRROR_COVERS_MOVE_VELOCITY', 'OVERRIDE_CAUSES', 'AZIMUTH_AXIS_MOVE_VELOCITY', 'OPEN_MIRROR_COVER', 'AZIMUTH_AXIS_POWER', 'CAMERA_CABLE_WRAP_ENABLE_TRACKING', 'ELEVATION_AXIS_DRIVE_RESET', 'MIRROR_COVER_LOCKS_RESET_ALARM', 'BOTH_AXES_TRACK', 'DEPLOYABLE_PLATFORM_POWER', 'EXIT', 'CAMERA_CABLE_WRAP_DRIVE_RESET', 'ENABLE', 'START', 'ASK_FOR_SET_OF_SETTINGS', 'DEPLOYABLE_PLATFORM_RESET_ALARM', 'ELEVATION_THERMAL_POWER', 'DEPLOYABLE_PLATFORM_STOP', 'ELEVATION_AXIS_TRACK', 'DISABLE', 'AZIMUTH_CABLE_WRAP_MOVE', 'BALANCE_STOP', 'MAIN_POWER_SUPPLY_RESET_ALARM', 'ASK_FOR_COMMAND', 'MAIN_POWER_SUPPLY_POWER', 'OIL_SUPPLY_SYSTEM_POWER_OIL', 'MIRROR_COVER_LOCKS_MOVE_VELOCITY', 'TRANSFER_FUNCTION_AZIMUTH_EXCITATION', 'ENTER_CONTROL', 'CABINET_RESET_ALARM', 'ENCODER_INTERFACE_BOX_RESET', 'BALANCE_POWER', 'ELEVATION_AXIS_MOVE', 'LOCKING_PINS_POWER', 'DEPLOYABLE_PLATFORM_MOVE_VELOCITY', 'AZIMUTH_CABLE_WRAP_POWER', 'CAMERA_CABLE_WRAP_MOVE_VELOCITY', 'ENTER_PUBLISHONLY', 'LOCKING_PINS_MOVE', 'AZIMUTH_THERMAL_RESET_ALARM', 'ELEVATION_THERMAL_RESET_ALARM', 'DISABLE_CAMERA_WRAP', 'AZIMUTH_CABLE_WRAP_STOP', 'CAMERA_CABLE_WRAP_DRIVE_ENABLE', 'AZIMUTH_AXIS_TRACK', 'OIL_SUPPLY_SYSTEM_POWER_MAIN_PUMP', 'BOTH_AXES_STOP', 'MIRROR_COVERS_POWER', 'ENCODER_INTERFACE_BOX_REFERENCE', 'MIRROR_COVERS_MOVE', 'MIRROR_COVER_LOCKS_MOVE_ALL', 'CAMERA_CABLE_WRAP_POWER', 'ENABLE_CAMERA_WRAP', 'AZIMUTH_AXIS_DRIVE_ENABLE', 'ELEVATION_AXIS_HOME', 'AZIMUTH_CABLE_WRAP_RESET_ALARM', 'MIRROR_COVERS_CLOSE', 'LOCKING_PINS_STOP', 'CABINET_TRACK_AMBIENT', 'ENCODER_INTERFACE_BOX_CLEAR_POSITION_ERROR', 'TOP_END_CHILLER_RESET_ALARM', 'AZIMUTH_THERMAL_POWER', 'CAMERA_CABLE_WRAP_STOP', 'LOCKING_PINS_MOVE_VELOCITY', 'AZIMUTH_AXIS_ENABLE_TRACKING', 'TRACK_TARGET', 'ENCODER_INTERFACE_BOX_RESET_ERROR'}

Methods Documentation

add_methods()

Add do_methods to the command dict

assert_drive_all(command)

Assert that the drive argument is -1 (all drives).

close()
do_close(command)
do_move(command)
do_move_all(command)
do_move_velocity(command)
do_open(command)
do_power(command)
do_reset_alarm(command)
do_stop(command)

Stop the actuator.

monitor_move_command(command)

Monitor motion and report a move command as done.

move(position, command)

Move to the specified position.

Parameters:
position : float

Desired position, in degrees.

command : Command

Command to monitor and report done.

Returns:
duration : float

Minimum duration of move (sec)

supersede_move_command()

Report the current move command (if any) as superseded.