def __init__(self, *args, **kwargs): CalcController.__init__(self, *args, **kwargs) self.geometry = self.config.get("geometry", int) self.d1 = self.config.get("d1", float) self.d2 = self.config.get("d2", float) try: self.d4 = self.config.get("d4", float) except: self.d4 = self.d1 / 2 if self.geometry in (5, 8): self.d3 = self.config.get("d3", float)
def initialize(self): CalcController.initialize(self) try: inverted = self.config.get('inverted', bool) except KeyError: self.__inverted = 1 else: self.__inverted = -1 if inverted else -1 try: self.__radian = self.config.get('radian', bool) except KeyError: self.__radian = False
def __init__(self, *args, **kwargs): CalcController.__init__(self, *args, **kwargs) self.geometry = self.config.get("geometry", int) self.d1 = self.config.get("d1", float) self.d2 = self.config.get("d2", float) try: self.d4 = self.config.get("d4", float) except KeyError: self.d4 = self.d1 / 2 if self.geometry in (5, 8): self.d3 = self.config.get("d3", float) self.no_offset = self.config.get('no_offset', bool, True)
def initialize_axis(self, axis): CalcController.initialize_axis(self, axis) axis.no_offset = True
def __init__(self, *args, **kwargs): CalcController.__init__(self, *args, **kwargs) self.distance = self.config.get("distance", float)
def __init__(self, *args, **kwargs): CalcController.__init__(self, *args, **kwargs) self._pos_dict = {}
def __init__(self, *args, **kwargs): CalcController.__init__(self, *args, **kwargs) self.axis_settings.add("dspace", float)
def __init__(self, *args, **kwargs): CalcController.__init__(self, *args, **kwargs) self.__inverted = False self.__radian = False
def initialize_axis(self, axis): CalcController.initialize_axis(self, axis) axis.no_offset = self.no_offset event.connect(axis, "dspace", self._calc_from_real)
def __init__(self, *args, **kwargs): CalcController.__init__(self, *args, **kwargs) self.no_offset = self.config.get('no_offset', bool, True) self.axis_settings.add("dspace", float)
def __init__(self, *args, **kwargs): CalcController.__init__(self, *args, **kwargs) self.orientation = str(self.config.get("orientation"))
def initialize_axis(self, axis): CalcController.initialize_axis(self, axis) event.connect(axis, "s_param", self._calc_from_real)
def __init__(self, *args, **kwargs): CalcController.__init__(self, *args, **kwargs) self.axis_settings.add("s_param", float)
def __init__(self, *args, **kwargs): CalcController.__init__(self, *args, **kwargs) self.d1 = self.config.get("d1", float) self.d2 = self.config.get("d2", float)
def initialize_axis(self, axis): CalcController.initialize_axis(self, axis)
def __init__(self, *args, **kwargs): CalcController.__init__(self, *args, **kwargs) # get theta_y theta_z from config file. self.theta_y = self.config.get("theta_y", float) self.theta_z = self.config.get("theta_z", float)
def __init__(self, *args, **kwargs): CalcController.__init__(self, *args, **kwargs)
def initialize_axis(self, axis): CalcController.initialize_axis(self, axis) event.connect(axis, "dspace", self._calc_from_real)