mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-06-24 07:22:04 +08:00
Cleanup: Honda interface already checks vehicle model for BSM (#27775)
This commit is contained in:
@@ -293,7 +293,7 @@ class CarState(CarStateBase):
|
||||
if self.CP.carFingerprint in HONDA_BOSCH_RADARLESS:
|
||||
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
|
||||
# more info here: https://github.com/commaai/openpilot/pull/1867
|
||||
ret.leftBlindspot = cp_body.vl["BSM_STATUS_LEFT"]["BSM_ALERT"] == 1
|
||||
@@ -340,7 +340,7 @@ class CarState(CarStateBase):
|
||||
|
||||
@staticmethod
|
||||
def get_body_can_parser(CP):
|
||||
if CP.enableBsm and CP.carFingerprint == CAR.CRV_5G:
|
||||
if CP.enableBsm:
|
||||
signals = [("BSM_ALERT", "BSM_STATUS_RIGHT"),
|
||||
("BSM_ALERT", "BSM_STATUS_LEFT")]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user