motor test
This commit is contained in:
parent
51e62901a1
commit
78e80ce8e0
@ -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):
|
||||
|
Loading…
x
Reference in New Issue
Block a user