fix controls mismatch; controlsd used to set alt exp

pull/32380/head
Shane Smiskol 1 year ago
parent c4972f7056
commit 19db591191
  1. 4
      selfdrive/test/process_replay/process_replay.py

@ -356,6 +356,10 @@ def get_car_params_callback(rc, pm, msgs, fingerprint):
for m in canmsgs[:300]:
can.send(m.as_builder().to_bytes())
_, CP = get_car(can, sendcan, Params().get_bool("ExperimentalLongitudinalEnabled"))
if not params.get_bool("DisengageOnAccelerator"):
CP.alternativeExperience |= ALTERNATIVE_EXPERIENCE.DISABLE_DISENGAGE_ON_GAS
params.put("CarParams", CP.to_bytes())
return CP

Loading…
Cancel
Save