Esempio n. 1
0
def down():
    global old_a, old_b, old_c, a, b, c, delay
    a, b, c = read_save_position.read_position()
    # update_position(old_a, old_b, old_c)
    c -= 1
    read_save_position.save_position_delay(a, b, c,delay)

    motor(-1, delay, 'c')
Esempio n. 2
0
def right():
	global old_a, old_b, old_c, a, b, c, delay
	a, b, c = read_save_position.read_position()
	# update_position(old_a, old_b, old_c)
	a += 1
	read_save_position.save_position_delay(a, b, c, delay)
	
	motor(1, delay, 'a')
Esempio n. 3
0
def set_current_position():
	global a, b, c
	a, b, c = read_save_position.read_position()
	print('current position: ' + str(a) +' '+ str(b) +' '+ str(c))