From 3a050deb7096fdbbb60531b03c1ecb4e4547998e Mon Sep 17 00:00:00 2001 From: Jason Wen Date: Tue, 26 Sep 2023 01:33:19 -0400 Subject: [PATCH] radar on bus 0 --- panda | 2 +- selfdrive/car/hyundai/carcontroller.py | 2 +- selfdrive/car/hyundai/interface.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/panda b/panda index f667a53442..9c481b2618 160000 --- a/panda +++ b/panda @@ -1 +1 @@ -Subproject commit f667a534424ace8ee4db6e77df5b2d7f657c00f3 +Subproject commit 9c481b2618143c3e90fc2f34f01f36e877b52884 diff --git a/selfdrive/car/hyundai/carcontroller.py b/selfdrive/car/hyundai/carcontroller.py index 3954629276..5acb53d961 100644 --- a/selfdrive/car/hyundai/carcontroller.py +++ b/selfdrive/car/hyundai/carcontroller.py @@ -93,7 +93,7 @@ class CarController: # tester present - w/ no response (keeps relevant ECU disabled) if self.frame % 100 == 0 and not (self.CP.flags & HyundaiFlags.CANFD_CAMERA_SCC.value) and self.CP.openpilotLongitudinalControl: # for longitudinal control, either radar or ADAS driving ECU - addr, bus = 0x7d0, self.CAN.ECAN if self.CP.carFingerprint in CANFD_CAR else 0 + addr, bus = 0x7d0, 0 #if self.CP.flags & HyundaiFlags.CANFD_HDA2.value: # addr, bus = 0x730, self.CAN.ECAN can_sends.append([addr, 0, b"\x02\x3E\x80\x00\x00\x00\x00\x00", bus]) diff --git a/selfdrive/car/hyundai/interface.py b/selfdrive/car/hyundai/interface.py index bccbdf1871..188fa0e36c 100644 --- a/selfdrive/car/hyundai/interface.py +++ b/selfdrive/car/hyundai/interface.py @@ -324,7 +324,7 @@ class CarInterface(CarInterfaceBase): @staticmethod def init(CP, logcan, sendcan): if CP.openpilotLongitudinalControl and not (CP.flags & HyundaiFlags.CANFD_CAMERA_SCC.value): - addr, bus = 0x7d0, CanBus(CP).ECAN if CP.carFingerprint in CANFD_CAR else 0 + addr, bus = 0x7d0, 0 #if CP.flags & HyundaiFlags.CANFD_HDA2.value: # addr, bus = 0x730, CanBus(CP).ECAN disable_ecu(logcan, sendcan, bus=bus, addr=addr, com_cont_req=b'\x28\x83\x01')