Skip to content

Commit

Permalink
Ford: prefix variable with MRR
Browse files Browse the repository at this point in the history
  • Loading branch information
sshane committed Oct 30, 2024
1 parent 0446c05 commit cde249d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions opendbc/car/ford/radar_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
DELPHI_MRR_RADAR_MSG_COUNT = 64

DELPHI_MRR_RADAR_RANGE_COVERAGE = {0: 42, 1: 164, 2: 45, 3: 175} # scan index to detection range (m)
MIN_LONG_RANGE_DIST = 30 # meters
DELPHI_MRR_MIN_LONG_RANGE_DIST = 30 # meters


def _create_delphi_esr_radar_can_parser(CP) -> CANParser:
Expand Down Expand Up @@ -140,7 +140,7 @@ def _update_delphi_mrr(self):

# Long range measurement mode is more sensitive and can detect the road surface
dist = msg[f"CAN_DET_RANGE_{ii:02d}"] # m [0|255.984]
if scanIndex in (1, 3) and dist < MIN_LONG_RANGE_DIST:
if scanIndex in (1, 3) and dist < DELPHI_MRR_MIN_LONG_RANGE_DIST:
valid = False

if valid:
Expand Down

0 comments on commit cde249d

Please sign in to comment.