radar on bus 0

This commit is contained in:
Jason Wen
2023-09-26 01:33:19 -04:00
parent 932cdee496
commit 3a050deb70
3 changed files with 3 additions and 3 deletions
+1 -1
Submodule panda updated: f667a53442...9c481b2618
+1 -1
View File
@@ -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])
+1 -1
View File
@@ -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')