set ACC_CONTROL check to 0

2022-rav4
Shane Smiskol 2022-02-04 23:02:20 -08:00
parent 3117f775f2
commit d91e31cac2
2 changed files with 4 additions and 4 deletions

View File

@ -217,8 +217,8 @@ class CarState(CarStateBase):
("PRE_COLLISION", 0), # TODO: figure out why freq is inconsistent
]
# if CP.carFingerprint in TSS2_CAR:
# signals.append(("ACC_TYPE", "ACC_CONTROL"))
# checks.append(("ACC_CONTROL", 33))
if CP.carFingerprint in TSS2_CAR:
signals.append(("ACC_TYPE", "ACC_CONTROL"))
checks.append(("ACC_CONTROL", 0))
return CANParser(DBC[CP.carFingerprint]["pt"], signals, checks, 2)

View File

@ -215,7 +215,7 @@ class CarInterface(CarInterfaceBase):
ret.enableDsu = (len(found_ecus) > 0) and (Ecu.dsu not in found_ecus) and (candidate not in NO_DSU_CAR) and (not smartDsu)
ret.enableGasInterceptor = 0x201 in fingerprint[0]
# if the smartDSU is detected, openpilot can send ACC_CMD (and the smartDSU will block it from the DSU) or not (the DSU is "connected")
ret.openpilotLongitudinalControl = False # smartDsu or ret.enableDsu or candidate in TSS2_CAR
ret.openpilotLongitudinalControl = smartDsu or ret.enableDsu or candidate in TSS2_CAR
if 0x245 in fingerprint[0]:
ret.flags |= ToyotaFlags.HYBRID.value