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 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()