From b47a9780dca68ba2558d1d6c8b4e426e5b3979a7 Mon Sep 17 00:00:00 2001 From: Jason Wen Date: Sun, 28 Apr 2024 06:45:54 -0400 Subject: [PATCH] fix tofu (lead) location on cluster and HUD to center lane the HDA icon state somehow was interfering with the lead car icon's lane location (left/middle/right) --- selfdrive/car/hyundai/hyundaicanfd.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/selfdrive/car/hyundai/hyundaicanfd.py b/selfdrive/car/hyundai/hyundaicanfd.py index 90f2f4bf1e..c43c9778df 100644 --- a/selfdrive/car/hyundai/hyundaicanfd.py +++ b/selfdrive/car/hyundai/hyundaicanfd.py @@ -149,7 +149,7 @@ def create_lfahda_cluster(packer, CAN, enabled, can_canfd_hybrid): lfa_icon = "LFA_Icon_State" if can_canfd_hybrid else "LFA_ICON" values = { - hda_icon: 1 if enabled else 0, + hda_icon: 1 if enabled and not can_canfd_hybrid else 0, lfa_icon: 2 if enabled else 0, }