From 28937cece3850bcb5eb874d40805e0a35b7ac053 Mon Sep 17 00:00:00 2001 From: Bernd Reuther Date: Thu, 4 Mar 2021 16:00:01 +0100 Subject: [PATCH] test motor --- src/schrittmotor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/schrittmotor.py b/src/schrittmotor.py index 83af57a..41b6748 100644 --- a/src/schrittmotor.py +++ b/src/schrittmotor.py @@ -143,7 +143,7 @@ class motor(): if temp_schritte > 0: self.vorwaerts(temp_schritte) else: - self.rueckwaerts(temp_schritte) + self.rueckwaerts(abs(temp_schritte)) def einzelschritt(spule, status, ges_schritte, schritt, t1, t2): w = (schritt * 100 / (ges_schritte - 1)) * 1.8