add minimum score to consider a way valid (#292)

pull/631/head
Willem Melching 6 years ago
parent f5044670fa
commit a321836788
  1. 4
      selfdrive/mapd/mapd_helpers.py

@ -192,6 +192,10 @@ class Way:
closest_way = way closest_way = way
best_score = score best_score = score
# Normal score is < 5
if best_score > 50:
return None
return closest_way return closest_way
def __str__(self): def __str__(self):

Loading…
Cancel
Save