motor test
This commit is contained in:
parent
2508534024
commit
7b47d6ed7f
@ -56,6 +56,8 @@ class motor:
|
|||||||
self.pwm4.start(0)
|
self.pwm4.start(0)
|
||||||
self.pwm4.ChangeDutyCycle(0)
|
self.pwm4.ChangeDutyCycle(0)
|
||||||
|
|
||||||
|
print(str(self.pwm4))
|
||||||
|
|
||||||
def vorwaerts(self, schritte):
|
def vorwaerts(self, schritte):
|
||||||
ges_schritte = schritte * 8
|
ges_schritte = schritte * 8
|
||||||
print(str(ges_schritte))
|
print(str(ges_schritte))
|
||||||
@ -63,7 +65,7 @@ class motor:
|
|||||||
|
|
||||||
if self.halten == 1:
|
if self.halten == 1:
|
||||||
test = self.pwm4.ChangeFrequency(freq)
|
test = self.pwm4.ChangeFrequency(freq)
|
||||||
print(str(test))
|
print(str(self.pwm4))
|
||||||
|
|
||||||
for i in range(int(schritte)):
|
for i in range(int(schritte)):
|
||||||
if self.pos >= self.schritte_max:
|
if self.pos >= self.schritte_max:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user