|
|
@ -293,7 +293,7 @@ class CarState(CarStateBase): |
|
|
|
if self.CP.carFingerprint in HONDA_BOSCH_RADARLESS: |
|
|
|
if self.CP.carFingerprint in HONDA_BOSCH_RADARLESS: |
|
|
|
self.lkas_hud = cp_cam.vl["LKAS_HUD"] |
|
|
|
self.lkas_hud = cp_cam.vl["LKAS_HUD"] |
|
|
|
|
|
|
|
|
|
|
|
if self.CP.enableBsm and self.CP.carFingerprint in (CAR.CRV_5G, ): |
|
|
|
if self.CP.enableBsm: |
|
|
|
# BSM messages are on B-CAN, requires a panda forwarding B-CAN messages to CAN 0 |
|
|
|
# BSM messages are on B-CAN, requires a panda forwarding B-CAN messages to CAN 0 |
|
|
|
# more info here: https://github.com/commaai/openpilot/pull/1867 |
|
|
|
# more info here: https://github.com/commaai/openpilot/pull/1867 |
|
|
|
ret.leftBlindspot = cp_body.vl["BSM_STATUS_LEFT"]["BSM_ALERT"] == 1 |
|
|
|
ret.leftBlindspot = cp_body.vl["BSM_STATUS_LEFT"]["BSM_ALERT"] == 1 |
|
|
@ -340,7 +340,7 @@ class CarState(CarStateBase): |
|
|
|
|
|
|
|
|
|
|
|
@staticmethod |
|
|
|
@staticmethod |
|
|
|
def get_body_can_parser(CP): |
|
|
|
def get_body_can_parser(CP): |
|
|
|
if CP.enableBsm and CP.carFingerprint == CAR.CRV_5G: |
|
|
|
if CP.enableBsm: |
|
|
|
signals = [("BSM_ALERT", "BSM_STATUS_RIGHT"), |
|
|
|
signals = [("BSM_ALERT", "BSM_STATUS_RIGHT"), |
|
|
|
("BSM_ALERT", "BSM_STATUS_LEFT")] |
|
|
|
("BSM_ALERT", "BSM_STATUS_LEFT")] |
|
|
|
|
|
|
|
|
|
|
|