From a30626cfe3f8860d547e5eb1a663c2df94aaf295 Mon Sep 17 00:00:00 2001 From: Josh Heidecker Date: Tue, 2 May 2017 22:01:03 -0400 Subject: [PATCH] Fixed relative distance errors in testing --- selfdrive/test/plant/plant.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/selfdrive/test/plant/plant.py b/selfdrive/test/plant/plant.py index 57f9b815c9..a485ac040e 100755 --- a/selfdrive/test/plant/plant.py +++ b/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.