route für alle 3 achsen
This commit is contained in:
		@@ -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)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user