From a1b95d784efd0e5d10d0ac6c7500d9f25ffe3880 Mon Sep 17 00:00:00 2001 From: Shane Smiskol Date: Thu, 29 Aug 2024 12:21:25 -0700 Subject: [PATCH] Honda: distance bars always cycle 1, 2, 3 (#1201) 1 is 1 --- opendbc/car/honda/hondacan.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/opendbc/car/honda/hondacan.py b/opendbc/car/honda/hondacan.py index f843d35708..2a9465b65b 100644 --- a/opendbc/car/honda/hondacan.py +++ b/opendbc/car/honda/hondacan.py @@ -144,7 +144,7 @@ def create_ui_commands(packer, CAN, CP, enabled, pcm_speed, hud, is_metric, acc_ 'CRUISE_SPEED': hud.v_cruise, 'ENABLE_MINI_CAR': 1 if enabled else 0, # only moves the lead car without ACC_ON - 'HUD_DISTANCE': (hud.lead_distance_bars + 1) % 4, # wraps to 0 at 4 bars + 'HUD_DISTANCE': hud.lead_distance_bars, # wraps to 0 at 4 bars 'IMPERIAL_UNIT': int(not is_metric), 'HUD_LEAD': 2 if enabled and hud.lead_visible else 1 if enabled else 0, 'SET_ME_X01_2': 1,