forked from commaai/openpilot
-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🔧 Tweak Toyota Long Tuning for My Tastes
The Rav4 2019 TSS2 has ~1.4s lag between when accel commands are sent to the car and when they are acted upon when the car is starting from a dead stop. Stock feels fine with this limitation, so OP can too. Most of these changes are designed to fix any sluggishness caused by the Toyota Tune. Additional changes need to be made to the Long MPC in order to solve the sluggish start completely. Changes: Decrease vEgoStopping and vEgoStarting to 0.2. Car is perfectly capable of controlling at these speeds. Lower value allows for state machine to exit stopping phase just a bit faster. Double the ActuatorDelay lag to .3 so we look into the future just a bit more, seems a bit more inline with realworld experience. Halve stoppingDecelRate to match the OEM stop_accel of -.4m/s2. Makes the final jerk in stopping a bit smoother Increase the PID max accel to 1.8 m/s2 tappering back to 1.5 m/s2 at 5m/s. Increase planner max accel to 1.4 m/s2 from 1.2 m/s2 starting from a stop tapering back to 1.2 m/s2 at 10m/s. Decreased planner max accel at 55mph, seemed a little uncomfortable to me. Decrease A_Change Timescale in Long_MPC to match more closely what toyota lag is. Ignore some messages and fields in process_replay test in order to keep it working.
- Loading branch information
Showing
5 changed files
with
27 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters