CameraCableWrapMove

class lsst.ts.MTMount.commands.CameraCableWrapMove(**kwargs)

Bases: lsst.ts.MTMount.commands.Command

CameraCableWrapMove command.

Parameters:
sequence_id : int, optional

Sequence number; used to identify replies to this command.

command_code : CommandCode, optional

command_code field with a fixed value: <CommandCode.CAMERA_CABLE_WRAP_MOVE: 1003>

source : Source, optional

Source of the command; a Source

timestamp : Time, optional

Time at which the message was sent.

position : float

Target position (deg).

velocity : float, optional

Maximum velocity; 0 for the default value (deg/second).

acceleration : float, optional

Maximum acceleration; 0 for the default value (deg/second2).

jerk : float, optional

Maximum jerk; 0 for the default value (deg/second3).

Attributes Summary

field_infos
has_extra_data
sequence_id_generator

Methods Summary

encode() Return the data encoded as a bytes string, including the standard terminator.
from_str_fields(fields) Construct a BaseMessage from a list of string fields.
str_fields() Return the data as a list of string fields.

Attributes Documentation

field_infos = (<lsst.ts.MTMount.field_info.IntFieldInfo object>, <lsst.ts.MTMount.field_info.CommandCodeFieldInfo object>, <lsst.ts.MTMount.field_info.SourceFieldInfo object>, <lsst.ts.MTMount.field_info.TimestampFieldInfo object>, <lsst.ts.MTMount.field_info.FloatFieldInfo object>, <lsst.ts.MTMount.field_info.FloatFieldInfo object>, <lsst.ts.MTMount.field_info.FloatFieldInfo object>, <lsst.ts.MTMount.field_info.FloatFieldInfo object>)
has_extra_data = False
sequence_id_generator = <generator object index_generator.<locals>.index_impl>

Methods Documentation

encode()

Return the data encoded as a bytes string, including the standard terminator.

classmethod from_str_fields(fields)

Construct a BaseMessage from a list of string fields.

Parameters:
fields : List [str]

Data fields, as strings:

  • There must be at least one field per field_infos entry.
  • If has_extra_data is treue then additional fields are provided as the extra_data argument, else additional fields result in an error.
Raises:
ValueError

If the wrong number of fields is presented or the data cannot be parsed as the kind of message indicated by its command_code field (for commands) or reply_code field (for replies).

str_fields()

Return the data as a list of string fields.