From 375235280d3c38e5c62cfc1b3952e1564cf06819 Mon Sep 17 00:00:00 2001 From: Shane Smiskol Date: Tue, 29 Oct 2024 16:17:36 -0700 Subject: [PATCH] fix --- opendbc/car/ford/radar_interface.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/opendbc/car/ford/radar_interface.py b/opendbc/car/ford/radar_interface.py index 0c6e78bd52..bc1f627e60 100644 --- a/opendbc/car/ford/radar_interface.py +++ b/opendbc/car/ford/radar_interface.py @@ -345,14 +345,14 @@ def _update_delphi_mrr(self): # assert False continue - dRel = [p.dRel for p in pts] + dRel = [p[0] for p in pts] min_dRel = min(dRel) dRel = sum(dRel) / len(dRel) - yRel = [p.yRel for p in pts] + yRel = [p[1] for p in pts] yRel = sum(yRel) / len(yRel) - vRel = [p.vRel for p in pts] + vRel = [p[2] for p in pts] vRel = sum(vRel) / len(vRel) # self.pts[track_id] = RadarPoint(dRel=min_dRel, yRel=yRel, vRel=vRel, trackId=track_id)