From 5350332ef40d5c7245ea870d1edfd19e9bef7036 Mon Sep 17 00:00:00 2001 From: royjr Date: Sat, 7 Dec 2024 15:50:22 -0500 Subject: [PATCH] Update test_hyundai_canfd.py --- tests/safety/test_hyundai_canfd.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/safety/test_hyundai_canfd.py b/tests/safety/test_hyundai_canfd.py index 7f280b6319..ffa3c9e1a2 100755 --- a/tests/safety/test_hyundai_canfd.py +++ b/tests/safety/test_hyundai_canfd.py @@ -83,7 +83,7 @@ class TestHyundaiCanfdHDA1Base(TestHyundaiCanfdBase): TX_MSGS = [[0x12A, 0], [0x1A0, 1], [0x1CF, 0], [0x1E0, 0]] RELAY_MALFUNCTION_ADDRS = {0: (0x12A,)} # LFA - FWD_BLACKLISTED_ADDRS = {2: [0x12A, 0x1E0]} + FWD_BLACKLISTED_ADDRS = {2: [0x12A, 0x1E0, 0x161, 0x162]} FWD_BUS_LOOKUP = {0: 2, 2: 0} STEER_MSG = "LFA" @@ -160,7 +160,7 @@ class TestHyundaiCanfdHDA2EV(TestHyundaiCanfdBase): TX_MSGS = [[0x50, 0], [0x1CF, 1], [0x2A4, 0]] RELAY_MALFUNCTION_ADDRS = {0: (0x50,)} # LKAS - FWD_BLACKLISTED_ADDRS = {2: [0x50, 0x2a4]} + FWD_BLACKLISTED_ADDRS = {2: [0x50, 0x2a4, 0x161, 0x162]} FWD_BUS_LOOKUP = {0: 2, 2: 0} PT_BUS = 1 @@ -180,7 +180,7 @@ class TestHyundaiCanfdHDA2EVAltSteering(TestHyundaiCanfdBase): TX_MSGS = [[0x110, 0], [0x1CF, 1], [0x362, 0]] RELAY_MALFUNCTION_ADDRS = {0: (0x110,)} # LKAS_ALT - FWD_BLACKLISTED_ADDRS = {2: [0x110, 0x362]} + FWD_BLACKLISTED_ADDRS = {2: [0x110, 0x362, 0x161, 0x162]} FWD_BUS_LOOKUP = {0: 2, 2: 0} PT_BUS = 1 @@ -233,7 +233,7 @@ def _accel_msg(self, accel, aeb_req=False, aeb_decel=0): ]) class TestHyundaiCanfdHDA1Long(HyundaiLongitudinalBase, TestHyundaiCanfdHDA1Base): - FWD_BLACKLISTED_ADDRS = {2: [0x12a, 0x1e0, 0x1a0]} + FWD_BLACKLISTED_ADDRS = {2: [0x12a, 0x1e0, 0x1a0, 0x161, 0x162]} RELAY_MALFUNCTION_ADDRS = {0: (0x12A, 0x1a0)} # LFA, SCC_CONTROL