motor test
This commit is contained in:
parent
3604a86468
commit
8d21aea724
@ -84,8 +84,8 @@ def action(changePin, action):
|
|||||||
@kamera_server.route("/position/<motor>/<position>")
|
@kamera_server.route("/position/<motor>/<position>")
|
||||||
def motor_test(motor, position):
|
def motor_test(motor, position):
|
||||||
if motor == "drehen":
|
if motor == "drehen":
|
||||||
m1.stop()
|
#m1.stop()
|
||||||
m1.start()
|
#m1.start()
|
||||||
m1.gehe_zu(int(position))
|
m1.gehe_zu(int(position))
|
||||||
|
|
||||||
return 'Drehen: ' + str(m1.pos)
|
return 'Drehen: ' + str(m1.pos)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user