Cleanup: Honda interface already checks vehicle model for BSM (#27775)

pull/27409/head
eFini 2 years ago committed by GitHub
parent 6bbcbab3f7
commit a50fbe17c8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      selfdrive/car/honda/carstate.py

@ -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")]

Loading…
Cancel
Save