當前位置: 首頁>>代碼示例>>Python>>正文


Python abstractAxisPlugin.AbstractAxisPlugin類代碼示例

本文整理匯總了Python中papywizard.plugins.abstractAxisPlugin.AbstractAxisPlugin的典型用法代碼示例。如果您正苦於以下問題:Python AbstractAxisPlugin類的具體用法?Python AbstractAxisPlugin怎麽用?Python AbstractAxisPlugin使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


在下文中一共展示了AbstractAxisPlugin類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。

示例1: deactivate

    def deactivate(self):
        Logger().trace("MerlinOrionPlugin.deactivate()")

        # Stop the thread
        self._stopThread()

        AbstractAxisPlugin.deactivate(self)
開發者ID:bingostar89,項目名稱:Papywizard,代碼行數:7,代碼來源:merlinOrionPlugins.py

示例2: configure

 def configure(self):
     AbstractAxisPlugin.configure(self)
     AbstractHardwarePlugin.configure(self)
     if self._config['OVERWRITE_ENCODER_FULL_CIRCLE']:
         self._hardware.overwriteEncoderFullCircle(self._config['ENCODER_FULL_CIRCLE'])
     else:
         self._hardware.useFirmwareEncoderFullCircle()
開發者ID:bingostar89,項目名稱:Papywizard,代碼行數:7,代碼來源:merlinOrionPlugins.py

示例3: shutdown

 def shutdown(self):
     Logger().trace("ClaussAxis.shutdown()")
     self.stop()
     if self._config["PARK_ENABLE"]:
         self._hardware.drive(float(self._config["PARK_POSITION"]), self.__getSpeed())
     AbstractHardwarePlugin.shutdown(self)
     AbstractAxisPlugin.shutdown(self)
開發者ID:bingostar89,項目名稱:Papywizard,代碼行數:7,代碼來源:claussPlugins.py

示例4: shutdown

    def shutdown(self):
        Logger().trace("MerlinOrionAxis.shutdown()")
        self.stop()
        AbstractHardwarePlugin.shutdown(self)
        AbstractAxisPlugin.shutdown(self)

        # Disconnect Spy update signal
        self.disconnect(Spy(), QtCore.SIGNAL("update"), self.__onPositionUpdate)
開發者ID:bingostar89,項目名稱:Papywizard,代碼行數:8,代碼來源:merlinOrionPlugins.py

示例5: _defineConfig

 def _defineConfig(self):
     AbstractAxisPlugin._defineConfig(self)
     AbstractHardwarePlugin._defineConfig(self)
     self._addConfigKey('_alternateDrive', 'ALTERNATE_DRIVE', default=DEFAULT_ALTERNATE_DRIVE)
     self._addConfigKey('_alternateDrive', 'ALTERNATE_DRIVE_ANGLE', default=DEFAULT_ALTERNATE_DRIVE_ANGLE)
     self._addConfigKey('_inertiaAngle', 'INERTIA_ANGLE', default=DEFAULT_INERTIA_ANGLE)
     self._addConfigKey('_overwriteEncoderFullCircle', 'OVERWRITE_ENCODER_FULL_CIRCLE', default=DEFAULT_OVERWRITE_ENCODER_FULL_CIRCLE)
     self._addConfigKey('_encoderFullCircle', 'ENCODER_FULL_CIRCLE', default=DEFAULT_ENCODER_FULL_CIRCLE)
開發者ID:bingostar89,項目名稱:Papywizard,代碼行數:8,代碼來源:merlinOrionPlugins.py

示例6: _init

 def _init(self):
     Logger().trace("MerlinOrionAxis._init()")
     AbstractHardwarePlugin._init(self)
     AbstractAxisPlugin._init(self)
     self._hardware = MerlinOrionHardware()
     self.__run = False
     self.__driveEvent = threading.Event()
     self.__setPoint = None
     self.__currentPos = None
開發者ID:bingostar89,項目名稱:Papywizard,代碼行數:9,代碼來源:merlinOrionPlugins.py

示例7: _init

 def _init(self):
     AbstractAxisPlugin._init(self)
     self.__pos = 0.
     self.__jog = False
     self.__drive = False
     self.__setpoint = None
     self.__dir = None
     self.__time = None
     self.__run = False
開發者ID:BCoulange,項目名稱:papypourad,代碼行數:9,代碼來源:simulationPlugins.py

示例8: _defineConfig

 def _defineConfig(self):
     AbstractAxisPlugin._defineConfig(self)
     AbstractHardwarePlugin._defineConfig(self)
     self._addConfigKey('_speed', 'SPEED', default=DEFAULT_SPEED[self.capacity])
     self._addConfigKey('_acceleration', 'ACCEL', default=DEFAULT_ACCEL[self.capacity])
     self._addConfigKey('_channel', 'CHANNEL', default=DEFAULT_CHANNEL[self.capacity])
     self._addConfigKey('_direction', 'DIRECTION', default=DEFAULT_DIRECTION[self.capacity])
     self._addConfigKey('_angle1ms', 'ANGLE_1MS', default=DEFAULT_ANGLE_1MS[self.capacity])
     self._addConfigKey('_neutralPos', 'NEUTRAL_POSITION', default=DEFAULT_NEUTRAL_POSITION[self.capacity])
     self._addConfigKey('_additionalDelay', 'ADDITIONAL_DELAY', default=DEFAULT_ADDITIONAL_DELAY)
開發者ID:BCoulange,項目名稱:papypourad,代碼行數:10,代碼來源:panoduinoPlugins.py

示例9: _checkLimits

    def _checkLimits(self, position):
        """ Check if the position can be reached.

        First check if the position in degres is in the user limits
        (done in parent class), then check if the servo can mechanically
        reach the position.
        """
        AbstractAxisPlugin._checkLimits(self, position)
        value = self.__angleToServo(position)
        if not VALUE_MIN <= value <= VALUE_MAX:
            raise HardwareError("Servo limit reached: %.2f not in [%d-%d]" % (value, VALUE_MIN, VALUE_MAX))
開發者ID:BCoulange,項目名稱:papypourad,代碼行數:11,代碼來源:panoduinoPlugins.py

示例10: _defineConfig

 def _defineConfig(self):
     AbstractAxisPlugin._defineConfig(self)
     AbstractHardwarePlugin._defineConfig(self)
     self._addConfigKey("_speedSlow", "SPEED_SLOW", default=DEFAULT_SPEED_SLOW)
     self._addConfigKey("_speedNormal", "SPEED_NORMAL", default=DEFAULT_SPEED_NORMAL)
     self._addConfigKey("_speedFast", "SPEED_FAST", default=DEFAULT_SPEED_FAST)
     self._addConfigKey("_parkPosition", "PARK_POSITION", default=DEFAULT_PARK_POSITION)
     if self.capacity == "yawAxis":
         self._addConfigKey("_parkEnable", "PARK_ENABLE", default=False)
     else:
         self._addConfigKey("_parkEnable", "PARK_ENABLE", default=True)
開發者ID:bingostar89,項目名稱:Papywizard,代碼行數:11,代碼來源:claussPlugins.py

示例11: _init

 def _init(self):
     Logger().trace("PanoduinoAxis._init()")
     AbstractHardwarePlugin._init(self)
     AbstractAxisPlugin._init(self)
     self._hardware = PololuMicroMaestroHardware()
開發者ID:BCoulange,項目名稱:papypourad,代碼行數:5,代碼來源:panoduinoPlugins.py

示例12: shutdown

 def shutdown(self):
     Logger().trace("PanoduinoAxis.shutdown()")
     self.stop()
     self._hardware.shutdown()
     AbstractHardwarePlugin.shutdown(self)
     AbstractAxisPlugin.shutdown(self)
開發者ID:BCoulange,項目名稱:papypourad,代碼行數:6,代碼來源:panoduinoPlugins.py

示例13: __init__

 def __init__(self, *args, **kwargs):
     AbstractHardwarePlugin.__init__(self, *args, **kwargs)  # Only 1?
     AbstractAxisPlugin.__init__(self, *args, **kwargs)
     QtCore.QThread.__init__(self)
開發者ID:bingostar89,項目名稱:Papywizard,代碼行數:4,代碼來源:merlinOrionPlugins.py

示例14: configure

 def configure(self):
     Logger().trace("PixOrbAxis.configure()")
     AbstractAxisPlugin.configure(self)
     self._hardware.configure(self._config['SPEED_INDEX'])
開發者ID:bingostar89,項目名稱:Papywizard,代碼行數:4,代碼來源:pixOrbPlugins.py

示例15: shutdown

 def shutdown(self):
     Logger().trace("PixOrbAxis.shutdown()")
     self.stop()
     AbstractAxisPlugin.shutdown(self)
開發者ID:bingostar89,項目名稱:Papywizard,代碼行數:4,代碼來源:pixOrbPlugins.py


注:本文中的papywizard.plugins.abstractAxisPlugin.AbstractAxisPlugin類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。