motor test
This commit is contained in:
parent
3bfeb331f7
commit
3863fe50c7
@ -15,11 +15,11 @@ for pin in pins_in:
|
|||||||
|
|
||||||
GPIO.output(pins_out['kamera']['nr'], GPIO.HIGH)
|
GPIO.output(pins_out['kamera']['nr'], GPIO.HIGH)
|
||||||
|
|
||||||
m1 = motor('drehen', m1_a1, m1_b1, m1_a2, m1_b2, m1_t1, m1_t2, m1_te, m1_es, 0)
|
m1 = motor('drehen', m1_a1, m1_b1, m1_a2, m1_b2, m1_t1, m1_t2, m1_te, m1_es, 0, 180)
|
||||||
m2 = motor('kippen', m2_a1, m2_b1, m2_a2, m2_b2, m2_t1, m2_t2, m2_te, m2_es, 1)
|
m2 = motor('kippen', m2_a1, m2_b1, m2_a2, m2_b2, m2_t1, m2_t2, m2_te, m2_es, 1, 90)
|
||||||
|
|
||||||
m1.schritte_max = 180
|
#m1.schritte_max = 180
|
||||||
m2.schritte_max = 90
|
#m2.schritte_max = 90
|
||||||
|
|
||||||
@kamera_server.route("/")
|
@kamera_server.route("/")
|
||||||
def main():
|
def main():
|
||||||
@ -71,7 +71,7 @@ def action(changePin, action):
|
|||||||
|
|
||||||
@kamera_server.route("/motor1_test")
|
@kamera_server.route("/motor1_test")
|
||||||
def motor_test():
|
def motor_test():
|
||||||
m2.pwm4.ChangeFrequency(freq_halten)
|
#m2.pwm4.ChangeFrequency(freq_halten)
|
||||||
m2.vorwaerts(10)
|
m2.vorwaerts(10)
|
||||||
#print('Motortest')
|
#print('Motortest')
|
||||||
# Pass the template data into the template main.html and return it to the user
|
# Pass the template data into the template main.html and return it to the user
|
||||||
|
Loading…
x
Reference in New Issue
Block a user