Fixed relative distance errors in testing

old-commit-hash: a30626cfe3
commatwo_master
Josh Heidecker 8 years ago
parent e49499a5eb
commit 58abd0c858
  1. 2
      selfdrive/test/plant/plant.py

@ -181,7 +181,7 @@ class Plant(object):
# *** radar model ***
if self.lead_relevancy:
d_rel = np.maximum(0., self.distance_lead - distance)
d_rel = np.maximum(0., distance_lead - distance)
v_rel = v_lead - speed
else:
d_rel = 200.

Loading…
Cancel
Save