Example #1
0
    def __init__(self):
        DomeBase.__init__(self)

        self._position = 0
        self._slewing = False
        self._maxSlewTime = 300.

        self._syncmode = 0

        self._slitOpen = False
        self._slitMoving = False

        self._abort = threading.Event()

        self._errorNo = 0

        self._errorString = ""

        # debug log
        self._debugLog = None

        try:
            self._debugLog = open(os.path.join(SYSTEM_CONFIG_DIRECTORY,
                                               "astelcodome-debug.log"), "w")
        except IOError, e:
            self.log.warning("Could not create astelco debug file (%s)" % str(e))
Example #2
0
    def __init__ (self):
        DomeBase.__init__(self)

        self._position  = 0
        self._slewing = False
        self._slitOpen  = False
        self._abort = threading.Event()
        self._maxSlewTime = 5/180.0
Example #3
0
    def __init__(self):
        DomeBase.__init__ (self)

        self.tty = None
        self.abort = threading.Event ()

        self._slewing  = False
        self._slitOpen = False

        self._az_shift = 0

        self._num_restarts = 0
        self._max_restarts = 3

        # debug log
        self._debugLog = None
        try:
            self._debugLog = open(os.path.join(SYSTEM_CONFIG_DIRECTORY, "dome-debug.log"), "w")
        except IOError, e:
            self.log.warning("Could not create meade debug file (%s)" % str(e))
Example #4
0
    def __init__(self):
        DomeBase.__init__(self)

        # Model, name, etc...
        self["model"] = "COTE/LNA custom dome"
        self["style"] = Style.Classic
        # self["park_position"] = 108
        self._park_tag = 900
        self["az_resolution"] = 2  # Will not move if (delta az) < 5 deg

        # Dome offsets. See description on util.dome_offset.
        self._offset_x = 0
        self._offset_y = 0
        self._offset_z = 0
        self._R = 147
        self._r = 49.2

        # Serial port
        self._serial = None

        # Few parameters...
        self._init_az = 108
        self._serial_timeout = 10  # seconds
        self._slitOpen = False  # FIXME: Slit open/closed should come from the dome.

        # Error handling constants
        self._dome_precision = 2  # Number of tags = +/- 4 degrees
        self._restart_precision = 4  # Number of tags = +/- 8 degrees.
        self._restart_tries = 3

        self._initalizing = False

        # Load LookUp table
        self._lookup = DomeLookupTable()

        # Debug file
        self._debugLog = None
        try:
            self._debugLog = open(os.path.join(SYSTEM_CONFIG_DIRECTORY, "dome-debug.log"), "w")
        except IOError, e:
            self.log.warning("Could not create dome debug file (%s)" % str(e))
Example #5
0
    def __init__(self):
        DomeBase.__init__(self)

        self.tty = None
        self.abort = threading.Event()

        self._slewing = False
        self._slitOpen = False

        self._az_shift = 0

        self._num_restarts = 0
        self._max_restarts = 3

        # debug log
        self._debugLog = None
        try:
            self._debugLog = open(
                os.path.join(SYSTEM_CONFIG_DIRECTORY, "dome-debug.log"), "w")
        except IOError, e:
            self.log.warning("Could not create meade debug file (%s)" % str(e))