regen & process replay: support no disengage on accelerator (#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>
This commit is contained in:
Shane Smiskol
2022-06-14 23:30:35 -07:00
committed by GitHub
parent a6652a539d
commit b86ef0b70e

View File

@@ -14,6 +14,7 @@ from cereal import car, log
from cereal.services import service_list
from common.params import Params
from common.timeout import Timeout
from panda.python import ALTERNATIVE_EXPERIENCE
from selfdrive.car.fingerprints import FW_VERSIONS
from selfdrive.car.car_helpers import get_car, interfaces
from selfdrive.test.process_replay.helpers import OpenpilotPrefix
@@ -368,6 +369,9 @@ def setup_env(simulation=False, CP=None):
# Regen or python process
if CP is not None:
if CP.alternativeExperience == ALTERNATIVE_EXPERIENCE.DISABLE_DISENGAGE_ON_GAS:
params.put_bool("DisengageOnAccelerator", False)
if CP.fingerprintSource == "fw" and CP.carFingerprint in FW_VERSIONS:
params.put("CarParamsCache", CP.as_builder().to_bytes())
else: