This commit is contained in:
Bernd Reuther 2021-10-17 14:07:47 +02:00
parent a96c52edbc
commit 3058a13db9
2 changed files with 6 additions and 4 deletions

View File

@ -118,9 +118,9 @@ def motor_test(drehen, pos1, kippen, pos2, zoom, pos3):
print('warten')
time.sleep(1)
th1 = motor_bewegen(m1, (int(pos1)))
th2 = motor_bewegen(m2, (int(pos2)))
th3 = motor_bewegen(m3, (int(pos3)))
th1 = motor_bewegen(m1, p1)
th2 = motor_bewegen(m2, p2)
th3 = motor_bewegen(m3, p3)
th1.join()
th2.join()

View File

@ -105,7 +105,9 @@ class motor():
if self.halten == 1:
pi.set_PWM_frequency(self.sp4, self.freq)
for i in range(int(schritte)):
print('Kamera Motor ' + self.name + ' gehe ' + str(schritte) + ' Schritte rückwärts')
for i in range(schritte):
print('Kamera Motor ' + self.name + ' Schritt ' + str(i))
if pi.read(self.endschalter) == 0:
print('Endschalter ' + self.name)