debug m3
This commit is contained in:
parent
a96c52edbc
commit
3058a13db9
@ -118,9 +118,9 @@ def motor_test(drehen, pos1, kippen, pos2, zoom, pos3):
|
|||||||
print('warten')
|
print('warten')
|
||||||
time.sleep(1)
|
time.sleep(1)
|
||||||
|
|
||||||
th1 = motor_bewegen(m1, (int(pos1)))
|
th1 = motor_bewegen(m1, p1)
|
||||||
th2 = motor_bewegen(m2, (int(pos2)))
|
th2 = motor_bewegen(m2, p2)
|
||||||
th3 = motor_bewegen(m3, (int(pos3)))
|
th3 = motor_bewegen(m3, p3)
|
||||||
|
|
||||||
th1.join()
|
th1.join()
|
||||||
th2.join()
|
th2.join()
|
||||||
|
@ -104,8 +104,10 @@ class motor():
|
|||||||
|
|
||||||
if self.halten == 1:
|
if self.halten == 1:
|
||||||
pi.set_PWM_frequency(self.sp4, self.freq)
|
pi.set_PWM_frequency(self.sp4, self.freq)
|
||||||
|
|
||||||
|
print('Kamera Motor ' + self.name + ' gehe ' + str(schritte) + ' Schritte rückwärts')
|
||||||
|
|
||||||
for i in range(int(schritte)):
|
for i in range(schritte):
|
||||||
print('Kamera Motor ' + self.name + ' Schritt ' + str(i))
|
print('Kamera Motor ' + self.name + ' Schritt ' + str(i))
|
||||||
if pi.read(self.endschalter) == 0:
|
if pi.read(self.endschalter) == 0:
|
||||||
print('Endschalter ' + self.name)
|
print('Endschalter ' + self.name)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user