예제 #1
0
def auto_thread():  #Ultrasonic tracking mode
    while 1:
        while auto_mode:
            ultra.loop(distance_stay, distance_range)
        time.sleep(0.2)
예제 #2
0
def auto_thread():
    '''Ultrasonic tracking mode'''
    while 1:  #??? why not put the loops in the actual function
        while auto_mode:
            ultra.loop(distance_stay, distance_range)
        time.sleep(0.2)