Skip to content

Commit

Permalink
make it a fixme
Browse files Browse the repository at this point in the history
  • Loading branch information
sshane committed Oct 30, 2024
1 parent a7e1541 commit 0dd9c8c
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions opendbc/car/ford/radar_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,9 +219,6 @@ def _update_delphi_mrr(self):
# Indexes 0 and 2 have a max range of ~40m, 1 and 3 are ~170m (MRR_Header_SensorCoverage->CAN_RANGE_COVERAGE)
# Indexes 0 and 1 have a Doppler coverage of +-71 m/s, 2 and 3 have +-60 m/s
scanIndex = msg[f"CAN_SCAN_INDEX_2LSB_{ii:02d}"]
i = (ii - 1) * 2 + (scanIndex - 2)
# if scanIndex not in (2, 3):
# continue

# Throw out old measurements. Very unlikely to happen, but is proper behavior
if scanIndex != headerScanIndex:
Expand Down Expand Up @@ -270,7 +267,7 @@ def _update_delphi_mrr(self):
vRel = [p[2] for p in pts]
vRel = sum(vRel) / len(vRel) / 2

# Creating RadarPoint and accessing attributes are both expensive, so we store a dataclass and re-use the RadarPoint
# FIXME: creating capnp RadarPoint and accessing attributes are both expensive, so we store a dataclass and re-use the RadarPoint
self.clusters.append(Cluster(dRel=dRel, dRelClosest=min_dRel, yRel=yRel, vRel=vRel, trackId=track_id))

if idx not in self.pts:
Expand Down

0 comments on commit 0dd9c8c

Please sign in to comment.