예제 #1
0
    def __init__(self):
        FocuserBase.__init__(self)

        self.tty = None

        self._directions = {Direction.IN: "FI", Direction.OUT: "FO"}

        self._modes = {
            Mode.Manual: "M",
            Mode.Free: "F",
            Mode.Auto_A: "A",
            Mode.Auto_B: "B"
        }

        self._supports = {
            FocuserFeature.TEMPERATURE_COMPENSATION: True,
            FocuserFeature.POSITION_FEEDBACK: True,
            FocuserFeature.ENCODER: True
        }

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

        self.tty = None

        self._directions = {Direction.IN: "FI",
                            Direction.OUT: "FO"}

        self._modes = {Mode.Manual: "M",
                       Mode.Free: "F",
                       Mode.Auto_A: "A",
                       Mode.Auto_B: "B"}

        self._supports = {FocuserFeature.TEMPERATURE_COMPENSATION: True,
                          FocuserFeature.POSITION_FEEDBACK: True,
                          FocuserFeature.ENCODER: True,
                          FocuserFeature.CONTROLLABLE_X: False,
                          FocuserFeature.CONTROLLABLE_Y: False,
                          FocuserFeature.CONTROLLABLE_Z: True,
                          FocuserFeature.CONTROLLABLE_U: False,
                          FocuserFeature.CONTROLLABLE_V: False,
                          FocuserFeature.CONTROLLABLE_W: False}

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

        self._supports = {FocuserFeature.TEMPERATURE_COMPENSATION: False,
                          FocuserFeature.POSITION_FEEDBACK: True,
                          FocuserFeature.ENCODER: True,
                          FocuserFeature.CONTROLLABLE_X: False,
                          FocuserFeature.CONTROLLABLE_Y: False,
                          FocuserFeature.CONTROLLABLE_U: False,
                          FocuserFeature.CONTROLLABLE_V: False,
                          FocuserFeature.CONTROLLABLE_W: False,
                          }

        self._position = {Axis.Z: None}
        self._offset = {Axis.Z: None}
        self._range = {Axis.Z: [None, None]}
        self._step = {Axis.Z: None}
        self._lastTimeLog = None
        self._temperature = 0.

        self._abort = threading.Event()

        self._errorNo = 0
        self._errorString = ""

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

        self._position = 0

        self._supports = {FocuserFeature.TEMPERATURE_COMPENSATION: False,
                          FocuserFeature.POSITION_FEEDBACK: True,
                          FocuserFeature.ENCODER: True}
예제 #5
0
    def __init__(self):
        FocuserBase.__init__(self)

        self._position = 0

        self._supports = {
            FocuserFeature.TEMPERATURE_COMPENSATION: False,
            FocuserFeature.POSITION_FEEDBACK: True,
            FocuserFeature.ENCODER: True
        }
예제 #6
0
    def __init__(self):
        FocuserBase.__init__(self)

        self._position = 0

        self._supports = {FocuserFeature.TEMPERATURE_COMPENSATION: False,
                          FocuserFeature.POSITION_FEEDBACK: True,
                          FocuserFeature.ENCODER: True,
                          FocuserFeature.CONTROLLABLE_X: False,
                          FocuserFeature.CONTROLLABLE_Y: False,
                          FocuserFeature.CONTROLLABLE_Z: True,
                          FocuserFeature.CONTROLLABLE_U: False,
                          FocuserFeature.CONTROLLABLE_V: False,
                          FocuserFeature.CONTROLLABLE_W: False,
                          }
예제 #7
0
    def __init__(self):
        FocuserBase.__init__(self)

        self._position = 0

        self._supports = {
            FocuserFeature.TEMPERATURE_COMPENSATION: False,
            FocuserFeature.POSITION_FEEDBACK: True,
            FocuserFeature.ENCODER: True,
            FocuserFeature.CONTROLLABLE_X: False,
            FocuserFeature.CONTROLLABLE_Y: False,
            FocuserFeature.CONTROLLABLE_Z: True,
            FocuserFeature.CONTROLLABLE_U: False,
            FocuserFeature.CONTROLLABLE_V: False,
            FocuserFeature.CONTROLLABLE_W: False,
        }
예제 #8
0
    def __init__(self):
        FocuserBase.__init__(self)

        self.tty = None

        self._supports = {FocuserFeature.TEMPERATURE_COMPENSATION: False,
                          FocuserFeature.POSITION_FEEDBACK: True,
                          FocuserFeature.ENCODER: True}

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