From 78e80ce8e05e42751d247109dc86f2e3b31d3fd2 Mon Sep 17 00:00:00 2001 From: Bernd Reuther Date: Thu, 4 Mar 2021 12:50:45 +0100 Subject: [PATCH] motor test --- src/schrittmotor.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/schrittmotor.py b/src/schrittmotor.py index 141bd30..ab5e1bb 100644 --- a/src/schrittmotor.py +++ b/src/schrittmotor.py @@ -59,7 +59,7 @@ class motor: def vorwaerts(self, schritte): ges_schritte = schritte * 8 print(str(ges_schritte)) - print(str(self.schritte_max)) + print(str(self.halten)) if self.halten == 1: self.pwm4.ChangeFrequency(freq) @@ -97,7 +97,7 @@ def einzelschritt(spule, status, ges_schritte, schritt, t1, t2): for i in range(0, 91, 5): dc = round(math.sin(math.radians(i)) * 100, 0) spule.ChangeDutyCycle(dc) - print(str(dc)) + #print(str(dc)) time.sleep(t) else: for i in range(0, 91, 5):