Skip to content

Commit

Permalink
Ford: fix possible duplicate track IDs
Browse files Browse the repository at this point in the history
  • Loading branch information
sshane committed Oct 29, 2024
1 parent 4493062 commit 1c0b1da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion opendbc/car/ford/radar_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,8 +153,8 @@ def _update_delphi_mrr(self):
# delphi doesn't notify of track switches, so do it manually
# TODO: refactor this to radard if more radars behave this way
if abs(self.pts[i].vRel - distRate) > 2 or abs(self.pts[i].dRel - dRel) > 5:
self.track_id += 1
self.pts[i].trackId = self.track_id
self.track_id += 1

self.pts[i].dRel = dRel
self.pts[i].yRel = yRel
Expand Down

0 comments on commit 1c0b1da

Please sign in to comment.