MADS: Toyota: UNSUPPORTED_DSU_CAR support

This commit is contained in:
Jason Wen
2023-10-30 12:58:58 +00:00
parent 4f65f9f8e6
commit b3784fc2f8
2 changed files with 4 additions and 1 deletions
+1 -1
Submodule panda updated: cebcc2e09b...53c8d966b4
+3
View File
@@ -256,6 +256,9 @@ class CarInterface(CarInterfaceBase):
if not ret.openpilotLongitudinalControl:
ret.safetyConfigs[0].safetyParam |= Panda.FLAG_TOYOTA_STOCK_LONGITUDINAL
if candidate in UNSUPPORTED_DSU_CAR:
ret.safetyConfigs[0].safetyParam |= Panda.FLAG_TOYOTA_UNSUPPORTED_DSU_CAR
# min speed to enable ACC. if car can do stop and go, then set enabling speed
# to a negative value, so it won't matter.
ret.minEnableSpeed = -1. if (stop_and_go or ret.enableGasInterceptor) else MIN_ACC_SPEED