Skip to content
Snippets Groups Projects
Commit 9ef96f44 authored by Malte Schmitz's avatar Malte Schmitz
Browse files

Remove debug prints

parent ddfe539f
No related branches found
No related tags found
No related merge requests found
......@@ -100,7 +100,7 @@ def eyes_direction(dir):
def do_eye_blink():
global eye_blink
while True:
time.sleep(random.randint(5,15))
time.sleep(random.randint(3,8))
for i in range(0, 7):
eye_blink = i
draw_eye()
......@@ -156,7 +156,6 @@ print('Press ESC in window to stop')
def sync():
global last_sync, position
print("SYNC!")
do_move(-5000)
sleep(0.5)
do_move(3800/2)
......@@ -173,7 +172,6 @@ def goto(new_position):
if abs(delta) > 100:
move(delta)
d = min(2, max(-2, int(round(delta / -750.0))))
print(d)
eyes_direction(d)
position = new_position
......@@ -211,11 +209,9 @@ def trackDepth():
if center != None:
target_x = (300 - center[0]) * -5
#print(target_x)
goto(target_x)
target_y = (450 - center[1]) / 15
#print(target_y)
eyes_goto(target_y)
if SHOW_IMAGE:
......@@ -267,7 +263,6 @@ def track():
if center != None:
target_x = (300 - center[0]) * -5
print(target_x)
goto(target_x)
return frame
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment