Skip to content

Commit 9b06976

Browse files
sshaneredacid95
authored andcommitted
regen & process replay: support no disengage on accelerator (commaai#24850)
* ACC on if enabled != 0 * small regen clean up and add HONDA3 * fixes * revert unneeded changes * not used * just alt exp Co-authored-by: redacid95 <jonathanc.olivier@gmail.com>
1 parent cc716ba commit 9b06976

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

selfdrive/test/process_replay/process_replay.py

+4
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
from cereal.services import service_list
1515
from common.params import Params
1616
from common.timeout import Timeout
17+
from panda.python import ALTERNATIVE_EXPERIENCE
1718
from selfdrive.car.fingerprints import FW_VERSIONS
1819
from selfdrive.car.car_helpers import get_car, interfaces
1920
from selfdrive.test.process_replay.helpers import OpenpilotPrefix
@@ -365,6 +366,9 @@ def setup_env(simulation=False, CP=None):
365366

366367
# Regen or python process
367368
if CP is not None:
369+
if CP.alternativeExperience == ALTERNATIVE_EXPERIENCE.DISABLE_DISENGAGE_ON_GAS:
370+
params.put_bool("DisengageOnAccelerator", False)
371+
368372
if CP.fingerprintSource == "fw" and CP.carFingerprint in FW_VERSIONS:
369373
params.put("CarParamsCache", CP.as_builder().to_bytes())
370374
else:

0 commit comments

Comments
 (0)