mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-07-21 12:32:08 +08:00
MADS: Toyota: UNSUPPORTED_DSU_CAR support
This commit is contained in:
+1
-1
Submodule panda updated: cebcc2e09b...53c8d966b4
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user