def move(params): s = steps(params) p = params['pos'] if params['posmode'] == 'abs': params['pos'] = to(p, s) else: params['pos'] = to(p, p + s)
def to_origin(params): p = params['pos'] params['X'] = 0 params['Y'] = 0 params['Z'] = 0 params['pos'] = to(p, np.array([0, 0, 0]))