motor test
This commit is contained in:
		@@ -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):
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user