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.
📏 Enable Toyota Distance Button to Change Distance Lines
__Additions__ * Forward distance button presses to car can * Read distance_lines can message from car and use to set distance profile. * Alter T_Follow based on distance profile * Stock = 1.45 * Relaxed = 1.25 * Traffic ~= 1.05 (at low speeds closer to 1.25) * Adjust J_Cost, A_Change_Cost, and D_Cost based on distance profile * Weights for Costs need to be adjusted when T_Follow is decreased. __Tests__ * Add Longitudinal Tests for Additional Following Profiles * Copy the comma tests, with appropriate following distance for each profile. * Tweak Process_Replay Action - Ignores the new carState.distanceLines message, so that replay refs still pass. Thanks to sshane for help with this. See the tree ending with commit 73237de
- Loading branch information
Showing
5 changed files
with
67 additions
and
19 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