route für alle 3 achsen

This commit is contained in:
2021-03-05 15:57:53 +01:00
parent b0116b7e49
commit 6976e05684
2 changed files with 27 additions and 6 deletions

View File

@ -179,6 +179,16 @@ class motor():
else:
self.rueckwaerts(abs(temp_schritte))
class motor_bewegen(threading.Thread):
def __init__(self, motor, position):
threading.Thread.__init__(self)
self.motor = motor
self.position = position
self.start()
def run(self):
self.motor.gehe_zu(self.position)
def einzelschritt(spule, status, ges_schritte, schritt, t1, t2):
w = (schritt * 100 / (ges_schritte - 1)) * 1.8
s = round(math.sin(math.radians(w)), 2)