honda: replace hard-coded address for STEERING_CONTROL check (#22352)

This commit is contained in:
John Belmonte
2021-09-28 02:11:58 +09:00
committed by GitHub
parent 98ee53618d
commit 29edd56049
+3 -5
View File
@@ -322,11 +322,9 @@ class CarState(CarStateBase):
@staticmethod
def get_cam_can_parser(CP):
signals = []
# all hondas except CRV, RDX and 2019 Odyssey@China use 0xe4 for steering
checks = [(0xe4, 100)]
if CP.carFingerprint in [CAR.CRV, CAR.CRV_EU, CAR.ACURA_RDX, CAR.ODYSSEY_CHN]:
checks = [(0x194, 100)]
checks = [
("STEERING_CONTROL", 100),
]
if CP.carFingerprint not in HONDA_BOSCH:
signals += [("COMPUTER_BRAKE", "BRAKE_COMMAND", 0),