def modAngle(self, type, inc): dim = self.ServoDims[type] for id in self.selected(): try: a = Arms.getAngle(id, dim) except IndexError: return angle = Arms.fitServoRange(a) Arms.setAngle(id, dim, angle + inc)
def getAngle(self, type, index=None): if index is None: index = self.ixCursor dim = self.ServoDims[type] return Arms.getAngle(index, dim)