From 02f6ca414a87e3d34754fde749ee99626aec405c Mon Sep 17 00:00:00 2001 From: cydia2020 <12470297+cydia2020@users.noreply.github.com> Date: Fri, 5 Nov 2021 08:53:32 +1100 Subject: [PATCH] Toyota: Increment by 5 km/h (5 mph) on long press (#22678) * Allow 5km/h speed increments on Toyota * update refs Co-authored-by: Adeeb Shihadeh old-commit-hash: d66f0fcc8773efd746fbe68a6f75614f731206fc --- selfdrive/car/toyota/toyotacan.py | 2 +- selfdrive/test/process_replay/ref_commit | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/selfdrive/car/toyota/toyotacan.py b/selfdrive/car/toyota/toyotacan.py index 71e1554eb3..5a78e3c7b6 100644 --- a/selfdrive/car/toyota/toyotacan.py +++ b/selfdrive/car/toyota/toyotacan.py @@ -35,10 +35,10 @@ def create_accel_command(packer, accel, pcm_cancel, standstill_req, lead, acc_ty "ACC_TYPE": acc_type, "DISTANCE": 0, "MINI_CAR": lead, - "ALLOW_LONG_PRESS": 3, "PERMIT_BRAKING": 1, "RELEASE_STANDSTILL": not standstill_req, "CANCEL_REQ": pcm_cancel, + "ALLOW_LONG_PRESS": 1, } return packer.make_can_msg("ACC_CONTROL", 0, values) diff --git a/selfdrive/test/process_replay/ref_commit b/selfdrive/test/process_replay/ref_commit index 42d3419cc7..f511ec3719 100644 --- a/selfdrive/test/process_replay/ref_commit +++ b/selfdrive/test/process_replay/ref_commit @@ -1 +1 @@ -5b624879c952ec610c431564ebcd3d257d679015 \ No newline at end of file +94d3ebac800d4db32d2947ae81fe7969026f40a3 \ No newline at end of file