diff --git a/kamera_server.py b/kamera_server.py index fa15710..97a85f2 100644 --- a/kamera_server.py +++ b/kamera_server.py @@ -16,7 +16,10 @@ 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) -m1 = motor('kippen', m2_a1, m2_b1, m2_a2, m2_b2, m2_t1, m2_t2, m2_te, m2_es, 1) +m2 = motor('kippen', m2_a1, m2_b1, m2_a2, m2_b2, m2_t1, m2_t2, m2_te, m2_es, 1) + +m1.schritte_max = 180 +m2.schritte_max = 90 @kamera_server.route("/") def main(): diff --git a/src/schrittmotor.py b/src/schrittmotor.py index 88d5669..968ec1a 100644 --- a/src/schrittmotor.py +++ b/src/schrittmotor.py @@ -54,6 +54,7 @@ class motor: def vorwaerts(self, schritte): ges_schritte = schritte * 8 print(str(ges_schritte)) + print(str(self.schritte_max)) if self.halten == 1: self.pwm4.ChangeFrequency(freq)