From 1c0b1da8f0f42f811af369e9f90fda6dc534be9e Mon Sep 17 00:00:00 2001 From: Shane Smiskol Date: Mon, 28 Oct 2024 17:19:21 -0700 Subject: [PATCH] Ford: fix possible duplicate track IDs --- opendbc/car/ford/radar_interface.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/opendbc/car/ford/radar_interface.py b/opendbc/car/ford/radar_interface.py index b145207e94..2178f6a3f6 100644 --- a/opendbc/car/ford/radar_interface.py +++ b/opendbc/car/ford/radar_interface.py @@ -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