MADS: Toyota: UNSUPPORTED_DSU_CAR support

This commit is contained in:
Jason Wen
2023-10-30 13:01:29 +00:00
parent 2c1fe0213b
commit a0ad76294e
2 changed files with 4 additions and 1 deletions
+1 -1
Submodule panda updated: cebcc2e09b...343ad38a8b
+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