set ACC_CONTROL check to 0
parent
3117f775f2
commit
d91e31cac2
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue