Документ взят из кэша поисковой машины. Адрес оригинального документа : http://www.apo.nmsu.edu/Telescopes/TCC/html/tcc35m_actor_8py_source.html
Дата изменения: Tue Sep 15 02:25:37 2015
Дата индексирования: Sun Apr 10 02:22:06 2016
Кодировка:

Поисковые слова: п п п п п п п п п п п п п п п п п п п п п п п п п п п п п п п п п п п п п п
lsst.tcc: python/tcc/actor/tcc35mActor.py Source File
lsst.tcc  1.2.2-3-g89ecb63
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
tcc35mActor.py
Go to the documentation of this file.
1 from __future__ import division, absolute_import
2 """The TCC (telescope control code) for the Apache Point Observatory 3.5m telescope
3 """
4 import syslog
5 from .tccActor import TCCActor
6 from tcc.mir import MirrorDevice
7 from tcc.axis import AxisDevice
8 
9 # list of axis controller device name, host, port
10 AxisNameHostPortList = (
11  ("az", "tccserv35m-p", 2300),
12  ("alt", "tccserv35m-p", 2400),
13  ("rot1", "tccserv35m-p", 2500), # NA2 rotator
14  ("rot2", "tccserv35m-p", 3900), # Agile rotator
15 )
16 # list of mirror controller device name, host, port
17 MirrorNameHostPortList = (
18  ("sec", "localhost", 3532),
19  ("tert", "localhost", 3533),
20 )
21 
22 class TCC35mActor(TCCActor):
23  """!TCC actor for the APO 3.5m telescope
24  """
25  UserPort = 3500
26  UDPPort = 1235 # from http://www.apo.nmsu.edu/Telescopes/TCC/UDPPackets.html
27  Facility = syslog.LOG_LOCAL1
28  def __init__(self):
29  """!Construct a TCC35mActor
30  """
31  TCCActor.__init__(self,
32  name = "tcc35m",
33  axisDict = dict((name, AxisDevice(name=name, host=host, port=port))
34  for name, host, port in AxisNameHostPortList),
35  mirrorDict = dict((name, MirrorDevice(name=name, host=host, port=port))
36  for name, host, port in MirrorNameHostPortList),
37  userPort = self.UserPort,
38  udpPort = self.UDPPort,
39  )
TCC actor for the APO 3.5m telescope.
Definition: tcc35mActor.py:22
def __init__
Construct a TCC35mActor.
Definition: tcc35mActor.py:28