server test
This commit is contained in:
parent
f2e9ce00ef
commit
e1b7352d91
@ -85,13 +85,11 @@ def action(changePin, action):
|
|||||||
def motor_test(motor, position):
|
def motor_test(motor, position):
|
||||||
if motor == "drehen":
|
if motor == "drehen":
|
||||||
m1.stop()
|
m1.stop()
|
||||||
time.sleep(1)
|
|
||||||
m1.start()
|
m1.start()
|
||||||
time.sleep(1)
|
|
||||||
m1.gehe_zu(int(position))
|
m1.gehe_zu(int(position))
|
||||||
|
|
||||||
return 'Drehen: ' + str(m1.pos)
|
return 'Drehen: ' + str(m1.pos)
|
||||||
|
|
||||||
#if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
# kamera_server.run(host='0.0.0.0')
|
kamera_server.run(host='0.0.0.0')
|
||||||
application = kamera_server
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user