Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sshane committed Oct 29, 2024
1 parent c5c04ea commit 3752352
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions opendbc/car/ford/radar_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 3752352

Please sign in to comment.