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>
old-commit-hash: b86ef0b70e
taco
Shane Smiskol 3 years ago committed by GitHub
parent 5e002bff96
commit 87b6182aac
  1. 4
      selfdrive/test/process_replay/process_replay.py

@ -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:

Loading…
Cancel
Save