motor test

This commit is contained in:
Bernd Reuther 2021-03-04 16:31:20 +01:00
parent 3604a86468
commit 8d21aea724

View File

@ -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)