From 6c4717cc39581a62d34cfe87e95372ff0611a5f0 Mon Sep 17 00:00:00 2001 From: firestar5683 <168790843+firestar5683@users.noreply.github.com> Date: Fri, 29 May 2026 16:07:34 -0500 Subject: [PATCH] g90test --- opendbc_repo/opendbc/car/hyundai/tests/test_hyundai.py | 10 ++++++++++ opendbc_repo/opendbc/car/hyundai/values.py | 7 ++++--- 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/opendbc_repo/opendbc/car/hyundai/tests/test_hyundai.py b/opendbc_repo/opendbc/car/hyundai/tests/test_hyundai.py index 566cf9fce..2c4fe9b81 100644 --- a/opendbc_repo/opendbc/car/hyundai/tests/test_hyundai.py +++ b/opendbc_repo/opendbc/car/hyundai/tests/test_hyundai.py @@ -629,6 +629,16 @@ class TestHyundaiFingerprint: ret = update(0, 3) assert any(be.type == ButtonType.lkas and not be.pressed for be in ret.buttonEvents) + def test_genesis_g90_does_not_use_alt_bus_lkas_parser(self): + toggles = get_test_toggles() + CP = CarInterface.get_params(CAR.GENESIS_G90, gen_empty_fingerprint(), [], False, False, False, toggles) + FPCP = CarInterface.get_starpilot_params(CAR.GENESIS_G90, gen_empty_fingerprint(), [], CP, toggles) + + car_state = CarState(CP, FPCP) + can_parsers = car_state.get_can_parsers(CP) + + assert Bus.alt not in can_parsers + def test_ioniq_6_longitudinal_params_match_canfd_tune(self): toggles = get_test_toggles() CP = CarInterface.get_params(CAR.HYUNDAI_IONIQ_6, gen_empty_fingerprint(), [], True, False, False, toggles) diff --git a/opendbc_repo/opendbc/car/hyundai/values.py b/opendbc_repo/opendbc/car/hyundai/values.py index 53f8b90ab..f33459511 100644 --- a/opendbc_repo/opendbc/car/hyundai/values.py +++ b/opendbc_repo/opendbc/car/hyundai/values.py @@ -927,9 +927,10 @@ CANCEL_BUTTON_ENABLE_CARS = frozenset({ }) -ALT_BUS_LDA_BUTTON_CARS = frozenset({ - CAR.GENESIS_G90, -}) +# No classic HKG platforms are currently opted into the synthetic alt-bus LKAS +# button path. The G90 regression is mitigated by falling back to the standard +# Hyundai LKAS button handling until a route-proven alt-bus implementation is ready. +ALT_BUS_LDA_BUTTON_CARS = frozenset() def hyundai_cancel_button_enables_cruise(car_fingerprint) -> bool: