debug m3
This commit is contained in:
parent
7b6b00d551
commit
2d848ea002
@ -125,6 +125,10 @@ def motor_test(drehen, pos1, kippen, pos2, zoom, pos3):
|
|||||||
th1.join()
|
th1.join()
|
||||||
th2.join()
|
th2.join()
|
||||||
th3.join()
|
th3.join()
|
||||||
|
|
||||||
|
while m1.aktiv == 1 or m2.aktiv == 1 or m3.aktiv == 1:
|
||||||
|
print('warten')
|
||||||
|
time.sleep(1)
|
||||||
|
|
||||||
return 'Drehen: ' + str(m1.pos) + ', Kippen: ' + str(m2.pos) + ', Zoom: ' + str(m3.pos)
|
return 'Drehen: ' + str(m1.pos) + ', Kippen: ' + str(m2.pos) + ', Zoom: ' + str(m3.pos)
|
||||||
|
|
||||||
|
@ -106,8 +106,7 @@ class motor():
|
|||||||
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')
|
print('Kamera Motor ' + self.name + ' gehe ' + str(schritte) + ' Schritte rückwärts')
|
||||||
#print('Kamera Motor ' + self.name + ' Schrittliste: ' + list(range(schritte)))
|
|
||||||
|
|
||||||
for i in range(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:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user