Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
hyundai: update radar message names (#22258)
  • Loading branch information
gregjhogan committed Sep 17, 2021
1 parent 5e995e5 commit 3eac5fc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion opendbc
4 changes: 2 additions & 2 deletions selfdrive/car/hyundai/radar_interface.py
Expand Up @@ -18,7 +18,7 @@ def get_radar_can_parser(CP):
checks = []

for addr in range(RADAR_START_ADDR, RADAR_START_ADDR + RADAR_MSG_COUNT):
msg = f"R_{hex(addr)}"
msg = f"RADAR_TRACK_{addr:x}"
signals += [
("STATE", msg, 0),
("AZIMUTH", msg, 0),
Expand Down Expand Up @@ -67,7 +67,7 @@ def _update(self, updated_messages):
ret.errors = errors

for addr in range(RADAR_START_ADDR, RADAR_START_ADDR + RADAR_MSG_COUNT):
msg = self.rcp.vl[f"R_{hex(addr)}"]
msg = self.rcp.vl[f"RADAR_TRACK_{addr:x}"]

if addr not in self.pts:
self.pts[addr] = car.RadarData.RadarPoint.new_message()
Expand Down

0 comments on commit 3eac5fc

Please sign in to comment.