From 59ff17b5e0aa522898c64ef4f7c03486805bc79d Mon Sep 17 00:00:00 2001 From: Shane Smiskol Date: Tue, 21 Dec 2021 02:51:42 -0700 Subject: [PATCH 1/2] add todo --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index dd54d2c308f378..8eaca2ec8aff0f 100755 --- a/README.md +++ b/README.md @@ -17,6 +17,7 @@ Want to request a feature or create a bug report? [Open an issue here!](https:// * [**~~Dynamic camera offsetting~~ (removed temporarily)**](#Dynamic-camera-offset-based-on-oncoming-traffic) - moves you over if adjacent lane has oncoming traffic * [**~~Dynamic gas~~** (no longer needed)](#dynamic-gas) - smoother gas control * [**~~Adding derivative to PI for better control~~**](#pi---pid-controller-for-long-and-lat) - lat: smoother control in turns; long: fix for comma pedal overshoot +* ***something about changing distance profiles using stock distance button*** ### General Features * [**~~Smoother long control using delay~~ (stock added this!)**](#compensate-for-longitudinal-delay-for-earlier-braking) - using an accel delay, just like for lateral From 75509db44cee62e9099f3e854f58dc91f2f4e3f5 Mon Sep 17 00:00:00 2001 From: Shane Smiskol Date: Sat, 8 Jan 2022 00:52:00 -0700 Subject: [PATCH 2/2] UI should initialize long before controlsd in normal conditions --- selfdrive/car/toyota/carstate.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/selfdrive/car/toyota/carstate.py b/selfdrive/car/toyota/carstate.py index 743546c5debd08..9bb9e70ec33b06 100644 --- a/selfdrive/car/toyota/carstate.py +++ b/selfdrive/car/toyota/carstate.py @@ -36,6 +36,9 @@ def __init__(self, CP): if self.enable_distance_btn: # Previously was publishing from UI self.pm = messaging.PubMaster(['dynamicFollowButton']) + # set param to true for next restart + if self.CP.carFingerprint in TSS2_CAR: + op_params.put('toyota_distance_btn', True) def update(self, cp, cp_cam): ret = car.CarState.new_message()