Exemple #1
0
 def _defineGui(self):
     AxisPluginController._defineGui(self)
     HardwarePluginController._defineGui(self)
     self._addWidget('Main', LABEL_SPEED_INDEX, SpinBoxField, (1, 10, "", ""), 'SPEED_INDEX')
     self._addTab('Hard', TAB_HARD)
     self._addWidget('Hard', LABEL_AXIS_WITH_BREAK, CheckBoxField, (), 'AXIS_WITH_BREAK')
     self._addWidget('Hard', LABEL_AXIS_ACCURACY, DoubleSpinBoxField, (0.01, 0.50, 2, 0.01, "", u" °"), 'AXIS_ACCURACY')
 def _defineGui(self):
     Logger().trace("PanoduinoShutterController._defineGui()")
     ShutterPluginController._defineGui(self)
     HardwarePluginController._defineGui(self)
     self._addTab('Servo', TAB_SERVO)
     self._addWidget('Servo', LABEL_CHANNEL, SpinBoxField, (0, 5, "", ""), 'CHANNEL')
     self._addWidget('Servo', LABEL_SHUTTER_ON, SpinBoxField, (VALUE_MIN, VALUE_MAX, "", u" µs"), 'SHUTTER_ON')
     self._addWidget('Servo', LABEL_SHUTTER_OFF, SpinBoxField, (VALUE_MIN, VALUE_MAX, "", u" µs"), 'SHUTTER_OFF')
Exemple #3
0
 def _defineGui(self):
     Logger().trace("UrsaMinorUsbShutterController._defineGui()")
     ShutterPluginController._defineGui(self)
     HardwarePluginController._defineGui(self)
     self._addWidget('Hard', LABEL_TRIGGER_LINE, ComboBoxField,
                     (['RTS', 'DTR'], ), 'TRIGGER_LINE')
     self._addWidget('Hard', LABEL_LINE_INVERTED, CheckBoxField, (),
                     'TRIGGER_LINE_INVERTED')
 def _defineGui(self):
     Logger().trace("UrsaMinorBt2ShutterController._defineGui()")
     ShutterPluginController._defineGui(self)
     HardwarePluginController._defineGui(self)
     self._addTab('Focus', TAB_FOCUS)
     self._addWidget('Focus', LABEL_FOCUS_ENABLE, CheckBoxField, (), 'FOCUS_ENABLE')
     self._addWidget('Focus', LABEL_FOCUS_PULSE_WIDTH, DoubleSpinBoxField, (0.1, 5., 1, 0.1, "", " s"), 'FOCUS_PULSE_WIDTH')
     self._addWidget('Focus', LABEL_MAINTAIN_FOCUS, CheckBoxField, (), 'FOCUS_MAINTAIN')
 def _defineGui(self):
     AxisPluginController._defineGui(self)
     HardwarePluginController._defineGui(self)
     self._addTab('Special', TAB_SPECIAL)
     self._addWidget('Special', LABEL_SPECIAL_SPEED_SLOW, SpinBoxField, (1, 100, "", " %"), 'SPEED_SLOW')
     self._addWidget('Special', LABEL_SPECIAL_SPEED_NORMAL, SpinBoxField, (1, 100, "", " %"), 'SPEED_NORMAL')
     self._addWidget('Special', LABEL_SPECIAL_SPEED_FAST, SpinBoxField, (1, 100, "", " %"), 'SPEED_FAST')
     self._addWidget('Special', LABEL_SPECIAL_PARK_ENABLE, CheckBoxField, (), 'PARK_ENABLE')
     self._addWidget('Special', LABEL_SPECIAL_PARK_POSITION, ComboBoxField, (["-180.", "-90.", "0.", "90.", "180."],), 'PARK_POSITION')
 def _defineGui(self):
     Logger().trace("ClaussShutter._defineGui()")
     ShutterPluginController._defineGui(self)
     HardwarePluginController._defineGui(self)
     self._addTab('Special', TAB_SPECIAL)
     self._addWidget('Special', LABEL_SPECIAL_FOCUS, CheckBoxField, (), 'FOCUS_ENABLE')
     self._addWidget('Special', LABEL_SPECIAL_FOCUS_TIME, DoubleSpinBoxField, (0.1, 5., 1, 0.1, "", " s"), 'FOCUS_TIME')
     self._addWidget('Special', LABEL_SPECIAL_DUAL, CheckBoxField, (), 'DUAL_ENABLE')
     self._addWidget('Special', LABEL_SPECIAL_DUAL_TIME, DoubleSpinBoxField, (0.1, 9., 1, 0.1, "", " s"), 'DUAL_TIME')
Exemple #7
0
 def _defineGui(self):
     AxisPluginController._defineGui(self)
     HardwarePluginController._defineGui(self)
     self._addTab('Hard', TAB_HARD)
     self._addWidget('Hard', LABEL_ALTERNATE_DRIVE, CheckBoxField, (), 'ALTERNATE_DRIVE')
     self._addWidget('Hard', LABEL_ALTERNATE_DRIVE_ANGLE, SpinBoxField, (3, 15, "", u" °"), 'ALTERNATE_DRIVE_ANGLE')
     self._addWidget('Hard', LABEL_INERTIA_ANGLE, DoubleSpinBoxField, (0.1, 9.9, 1, .1, "", u" °"), 'INERTIA_ANGLE')
     self._addWidget('Hard', LABEL_OVERWRITE_ENCODER_FULL_CIRCLE, CheckBoxField, (), 'OVERWRITE_ENCODER_FULL_CIRCLE')
     self._addWidget('Hard', LABEL_ENCODER_FULL_CIRCLE, SpinBoxField, (0, 16777216, "", ""), 'ENCODER_FULL_CIRCLE')
 def _defineGui(self):
     Logger().trace("PanoduinoShutterController._defineGui()")
     ShutterPluginController._defineGui(self)
     HardwarePluginController._defineGui(self)
     self._addTab('Servo', TAB_SERVO)
     self._addWidget('Servo', LABEL_CHANNEL, SpinBoxField, (0, 5, "", ""),
                     'CHANNEL')
     self._addWidget('Servo', LABEL_SHUTTER_ON, SpinBoxField,
                     (VALUE_MIN, VALUE_MAX, "", u" µs"), 'SHUTTER_ON')
     self._addWidget('Servo', LABEL_SHUTTER_OFF, SpinBoxField,
                     (VALUE_MIN, VALUE_MAX, "", u" µs"), 'SHUTTER_OFF')
 def _defineGui(self):
     Logger().trace("UrsaMinorBt2ShutterController._defineGui()")
     ShutterPluginController._defineGui(self)
     HardwarePluginController._defineGui(self)
     self._addTab('Focus', TAB_FOCUS)
     self._addWidget('Focus', LABEL_FOCUS_ENABLE, CheckBoxField, (),
                     'FOCUS_ENABLE')
     self._addWidget('Focus', LABEL_FOCUS_PULSE_WIDTH, DoubleSpinBoxField,
                     (0.1, 5., 1, 0.1, "", " s"), 'FOCUS_PULSE_WIDTH')
     self._addWidget('Focus', LABEL_MAINTAIN_FOCUS, CheckBoxField, (),
                     'FOCUS_MAINTAIN')
 def _defineGui(self):
     AxisPluginController._defineGui(self)
     HardwarePluginController._defineGui(self)
     self._addWidget('Main', LABEL_SPEED, SpinBoxField, (0, 255, "", u" µs/period"), 'SPEED')  # Check unit
     self._addWidget('Main', LABEL_ACCEL, SpinBoxField, (0, 255, "", u" µs/period²"), 'ACCEL')
     self._addTab('Servo', TAB_SERVO)
     self._addWidget('Servo', "Channel", SpinBoxField, (0, 5), 'CHANNEL')
     directions = [DIRECTION_TABLE['forward'], DIRECTION_TABLE['reverse']]
     self._addWidget('Servo', LABEL_DIRECTION, ComboBoxField, (directions,), 'DIRECTION')
     self._addWidget('Servo', LABEL_ANGLE_1MS, DoubleSpinBoxField, (0.1, 9999.9, 1, 1., "", u" °"), 'ANGLE_1MS')
     self._addWidget('Servo', LABEL_NEUTRAL_POSITION, SpinBoxField, (VALUE_MIN, VALUE_MAX, "", u" µs"), 'NEUTRAL_POSITION')
     self._addWidget('Servo', LABEL_ADDITIONAL_DELAY, DoubleSpinBoxField, (0.1, 9.9, 1, 0.1, "", u" s"), 'ADDITIONAL_DELAY')
Exemple #11
0
 def _defineGui(self):
     Logger().trace("ClaussShutter._defineGui()")
     ShutterPluginController._defineGui(self)
     HardwarePluginController._defineGui(self)
     self._addTab('Special', TAB_SPECIAL)
     self._addWidget('Special', LABEL_SPECIAL_FOCUS, CheckBoxField, (),
                     'FOCUS_ENABLE')
     self._addWidget('Special', LABEL_SPECIAL_FOCUS_TIME,
                     DoubleSpinBoxField, (0.1, 5., 1, 0.1, "", " s"),
                     'FOCUS_TIME')
     self._addWidget('Special', LABEL_SPECIAL_DUAL, CheckBoxField, (),
                     'DUAL_ENABLE')
     self._addWidget('Special', LABEL_SPECIAL_DUAL_TIME, DoubleSpinBoxField,
                     (0.1, 9., 1, 0.1, "", " s"), 'DUAL_TIME')
Exemple #12
0
 def _defineGui(self):
     AxisPluginController._defineGui(self)
     HardwarePluginController._defineGui(self)
     self._addTab('Special', TAB_SPECIAL)
     self._addWidget('Special', LABEL_SPECIAL_SPEED_SLOW, SpinBoxField,
                     (1, 100, "", " %"), 'SPEED_SLOW')
     self._addWidget('Special', LABEL_SPECIAL_SPEED_NORMAL, SpinBoxField,
                     (1, 100, "", " %"), 'SPEED_NORMAL')
     self._addWidget('Special', LABEL_SPECIAL_SPEED_FAST, SpinBoxField,
                     (1, 100, "", " %"), 'SPEED_FAST')
     self._addWidget('Special', LABEL_SPECIAL_PARK_ENABLE, CheckBoxField,
                     (), 'PARK_ENABLE')
     self._addWidget('Special', LABEL_SPECIAL_PARK_POSITION, ComboBoxField,
                     (["-180.", "-90.", "0.", "90.", "180."], ),
                     'PARK_POSITION')
 def _defineGui(self):
     AxisPluginController._defineGui(self)
     HardwarePluginController._defineGui(self)
     self._addWidget('Main', LABEL_SPEED, SpinBoxField,
                     (0, 255, "", u" µs/period"), 'SPEED')  # Check unit
     self._addWidget('Main', LABEL_ACCEL, SpinBoxField,
                     (0, 255, "", u" µs/period²"), 'ACCEL')
     self._addTab('Servo', TAB_SERVO)
     self._addWidget('Servo', "Channel", SpinBoxField, (0, 5), 'CHANNEL')
     directions = [DIRECTION_TABLE['forward'], DIRECTION_TABLE['reverse']]
     self._addWidget('Servo', LABEL_DIRECTION, ComboBoxField,
                     (directions, ), 'DIRECTION')
     self._addWidget('Servo', LABEL_ANGLE_1MS, DoubleSpinBoxField,
                     (0.1, 9999.9, 1, 1., "", u" °"), 'ANGLE_1MS')
     self._addWidget('Servo', LABEL_NEUTRAL_POSITION, SpinBoxField,
                     (VALUE_MIN, VALUE_MAX, "", u" µs"), 'NEUTRAL_POSITION')
     self._addWidget('Servo', LABEL_ADDITIONAL_DELAY, DoubleSpinBoxField,
                     (0.1, 9.9, 1, 0.1, "", u" s"), 'ADDITIONAL_DELAY')
Exemple #14
0
 def _defineGui(self):
     AxisPluginController._defineGui(self)
     HardwarePluginController._defineGui(self)
 def _defineGui(self):
     Logger().trace("UrsaMinorUsbShutterController._defineGui()")
     ShutterPluginController._defineGui(self)
     HardwarePluginController._defineGui(self)
     self._addWidget('Hard', LABEL_TRIGGER_LINE, ComboBoxField, (['RTS', 'DTR'],), 'TRIGGER_LINE')
     self._addWidget('Hard', LABEL_LINE_INVERTED, CheckBoxField, (), 'TRIGGER_LINE_INVERTED')
Exemple #16
0
 def _defineGui(self):
     ShutterPluginController._defineGui(self)
     HardwarePluginController._defineGui(self)
Exemple #17
0
 def _defineGui(self):
     AxisPluginController._defineGui(self)
     HardwarePluginController._defineGui(self)