motor test
This commit is contained in:
		@@ -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)
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user