diff --git a/kamera_server.py b/kamera_server.py index c3a7585..aa44dcb 100644 --- a/kamera_server.py +++ b/kamera_server.py @@ -15,11 +15,11 @@ for pin in pins_in: GPIO.output(pins_out['kamera']['nr'], GPIO.HIGH) -m1 = motor('drehen', m1_a1, m1_b1, m1_a2, m1_b2, m1_t1, m1_t2, m1_te, m1_es, 0) -m2 = motor('kippen', m2_a1, m2_b1, m2_a2, m2_b2, m2_t1, m2_t2, m2_te, m2_es, 1) +m1 = motor('drehen', m1_a1, m1_b1, m1_a2, m1_b2, m1_t1, m1_t2, m1_te, m1_es, 0, 180) +m2 = motor('kippen', m2_a1, m2_b1, m2_a2, m2_b2, m2_t1, m2_t2, m2_te, m2_es, 1, 90) -m1.schritte_max = 180 -m2.schritte_max = 90 +#m1.schritte_max = 180 +#m2.schritte_max = 90 @kamera_server.route("/") def main(): @@ -71,7 +71,7 @@ def action(changePin, action): @kamera_server.route("/motor1_test") def motor_test(): - m2.pwm4.ChangeFrequency(freq_halten) + #m2.pwm4.ChangeFrequency(freq_halten) m2.vorwaerts(10) #print('Motortest') # Pass the template data into the template main.html and return it to the user