@ -117,15 +117,15 @@ try:
Ab.setPWMB(PWM)
print(PWM)
else:
if dist < 20:
n = 0
Ab.stop()
print("run into obstabcle")
n += 1
if n > 20000:
except KeyboardInterrupt:
GPIO.cleanup();