From cafed2780a3d76f9bc58c8da0a2b7b40205f19c8 Mon Sep 17 00:00:00 2001 From: Bernd Reuther Date: Thu, 4 Mar 2021 15:04:58 +0100 Subject: [PATCH] motor test --- kamera_server.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/kamera_server.py b/kamera_server.py index b8cc063..3bd7817 100644 --- a/kamera_server.py +++ b/kamera_server.py @@ -26,8 +26,6 @@ m2 = motor('kippen', m2_a1, m2_b1, m2_a2, m2_b2, m2_t1, m2_t2, m2_te, m2_es, 1, m1.start() m2.start() -time.sleep(5) - m1.vorwaerts(10) #m1.stop() #m2.stop() @@ -89,8 +87,9 @@ def action(changePin, action): @kamera_server.route("/motor1_test") def motor_test(): #m2.pwm4.ChangeFrequency(freq_halten) + m1.start() m1.vorwaerts(10) - time.sleep(5) + #print('Motortest') # Pass the template data into the template main.html and return it to the user return 'fertig'