编辑hondacan.py
This commit is contained in:
@@ -17,7 +17,7 @@ class CanBus(CanBusBase):
|
||||
super().__init__(CP if fingerprint is None else None, fingerprint)
|
||||
|
||||
# powertrain bus is split instead of radar on radarless and CAN FD Bosch
|
||||
if CP.carFingerprint in (HONDA_BOSCH - HONDA_BOSCH_RADARLESS - HONDA_BOSCH_CANFD) or CP.carFingerprint == CAR.HONDA_HRV_3G:
|
||||
if CP.carFingerprint in (HONDA_BOSCH - HONDA_BOSCH_RADARLESS - HONDA_BOSCH_CANFD):
|
||||
self._pt, self._radar = self.offset + 1, self.offset
|
||||
# normally steering commands are sent to radar, which forwards them to powertrain bus
|
||||
# when radar is disabled, steering commands are sent directly to powertrain bus
|
||||
@@ -190,7 +190,7 @@ def create_lkas_hud(packer, bus, CP, hud_control, lat_active, steering_available
|
||||
|
||||
# car likely needs to see LKAS_PROBLEM fall within a specific time frame, so forward from camera
|
||||
# TODO: needed for Bosch CAN FD?
|
||||
if CP.carFingerprint in HONDA_BOSCH_RADARLESS or CP.carFingerprint == CAR.HONDA_HRV_3G:
|
||||
if CP.carFingerprint in HONDA_BOSCH_RADARLESS:
|
||||
lkas_hud_values['LKAS_PROBLEM'] = lkas_hud['LKAS_PROBLEM']
|
||||
|
||||
if not (CP.flags & HondaFlags.BOSCH_EXT_HUD):
|
||||
@@ -250,4 +250,4 @@ def honda_checksum(address: int, sig, d: bytearray) -> int:
|
||||
s = 8 - s
|
||||
if extended:
|
||||
s += 3
|
||||
return s & 0xF
|
||||
return s & 0xF
|
||||
Reference in New Issue
Block a user