motor test

This commit is contained in:
Bernd Reuther 2021-03-04 16:03:28 +01:00
parent 28937cece3
commit 7d797b2ffb

View File

@ -139,6 +139,7 @@ class motor():
def gehe_zu(self, position): def gehe_zu(self, position):
temp_schritte = int(position) - self.pos temp_schritte = int(position) - self.pos
print(str(temp_schritte))
if temp_schritte > 0: if temp_schritte > 0:
self.vorwaerts(temp_schritte) self.vorwaerts(temp_schritte)