diff --git a/opendbc_repo/opendbc/car/honda/fingerprints.py b/opendbc_repo/opendbc/car/honda/fingerprints.py index 7d7cb8780..e7e864bdd 100644 --- a/opendbc_repo/opendbc/car/honda/fingerprints.py +++ b/opendbc_repo/opendbc/car/honda/fingerprints.py @@ -255,6 +255,7 @@ FW_VERSIONS = { b'57114-TGL-G330\x00\x00', ], (Ecu.eps, 0x18da30f1, None): [ + b'39990-TBA-C120\x00\x00', b'39990-TBA-C020\x00\x00', b'39990-TBA-C120\x00\x00', b'39990-TEA-T330\x00\x00', diff --git a/opendbc_repo/opendbc/car/honda/tests/test_honda.py b/opendbc_repo/opendbc/car/honda/tests/test_honda.py index e1ef77901..66721b318 100644 --- a/opendbc_repo/opendbc/car/honda/tests/test_honda.py +++ b/opendbc_repo/opendbc/car/honda/tests/test_honda.py @@ -110,6 +110,7 @@ class TestHondaFingerprint: def test_official_modified_eps_firmwares_restored(self): assert b'39990-TVA,A150\x00\x00' in FW_VERSIONS[CAR.HONDA_ACCORD][(CarParams.Ecu.eps, 0x18DA30F1, None)] assert b'39990-TBA,A030\x00\x00' in FW_VERSIONS[CAR.HONDA_CIVIC][(CarParams.Ecu.eps, 0x18DA30F1, None)] + assert b'39990-TBA,C120\x00\x00' in FW_VERSIONS[CAR.HONDA_CIVIC_BOSCH][(CarParams.Ecu.eps, 0x18DA30F1, None)] assert b'39990-TGG,A020\x00\x00' in FW_VERSIONS[CAR.HONDA_CIVIC_BOSCH][(CarParams.Ecu.eps, 0x18DA30F1, None)] assert b'39990-TLA,A040\x00\x00' in FW_VERSIONS[CAR.HONDA_CRV_5G][(CarParams.Ecu.eps, 0x18DA30F1, None)] @@ -125,6 +126,11 @@ class TestHondaFingerprint: assert list(civic_cp.lateralTuning.pid.kpV) == pytest.approx([0.3]) assert list(civic_cp.lateralTuning.pid.kiV) == pytest.approx([0.1]) + civic_bosch_fw = [CarParams.CarFw(ecu=CarParams.Ecu.eps, fwVersion=b'39990-TBA,C120\x00\x00', address=0x18DA30F1, subAddress=0)] + civic_bosch_cp = CarInterface.get_params(CAR.HONDA_CIVIC_BOSCH, gen_empty_fingerprint(), civic_bosch_fw, False, False, False, toggles) + assert not civic_bosch_cp.dashcamOnly + assert civic_bosch_cp.flags & HondaFlags.EPS_MODIFIED + accord_fw = [CarParams.CarFw(ecu=CarParams.Ecu.eps, fwVersion=b'39990-TVA,A150\x00\x00', address=0x18DA30F1, subAddress=0)] accord_cp = CarInterface.get_params(CAR.HONDA_ACCORD, gen_empty_fingerprint(), accord_fw, False, False, False, toggles) assert not accord_cp.dashcamOnly