This commit is contained in:
firestar5683
2026-05-29 16:07:34 -05:00
parent 6afdc99dd5
commit 6c4717cc39
2 changed files with 14 additions and 3 deletions
@@ -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)
+4 -3
View File
@@ -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: