forked from sshane/openpilot
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Pulled commit from future Comma work. The KIA commit was pulled just to make my life easier. commit 0eae5b3 Author: Shane Smiskol <shane@smiskol.com> Date: Thu Jun 2 01:06:14 2022 -0700 Move some Toyotas to the torque tune for testing commit cb91f7c Author: HaraldSchafer <harald.the.engineer@gmail.com> Date: Fri May 27 10:21:02 2022 -0700 Tssp prius torque control (commaai#24669) * use llk * use steering sensor at low speed stil * Try more simple * rm prius tune * updated ref commit baaa47f Author: HaraldSchafer <harald.the.engineer@gmail.com> Date: Tue May 24 17:52:33 2022 -0700 Rerevert torque control (commaai#24649) * Revert "Revert torque control (commaai#24565)" This reverts commit 9f8b037. * Move tune out of car specific stuff * Update ref commit commit 7c69036 Author: Adeeb Shihadeh <adeebshihadeh@gmail.com> Date: Mon May 23 19:16:17 2022 -0700 Kia EV6 (commaai#24485) * ev6 squash * test route * cleanup * remove those * resume spam * setme * more reliable button pressing * new steer signals * for now * update docs
- Loading branch information
1 parent
38fad24
commit 7751ea7
Showing
12 changed files
with
279 additions
and
205 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
def create_lkas(packer, enabled, frame, lat_active, apply_steer): | ||
values = { | ||
"LKA_MODE": 2, | ||
"LKA_ICON": 2 if enabled else 1, | ||
"TORQUE_REQUEST": apply_steer, | ||
"LKA_ASSIST": 0, | ||
"STEER_REQ": 1 if lat_active else 0, | ||
"STEER_MODE": 0, | ||
"SET_ME_1": 0, | ||
"NEW_SIGNAL_1": 0, | ||
"NEW_SIGNAL_2": 0, | ||
} | ||
return packer.make_can_msg("LKAS", 4, values, frame % 255) | ||
|
||
|
||
def create_buttons(packer, cnt, cancel, resume): | ||
values = { | ||
"_COUNTER": cnt % 0xf, | ||
"SET_ME_1": 1, | ||
"DISTANCE_BTN": 1 if resume else 0, | ||
"PAUSE_RESUME_BTN": 1 if cancel else 0, | ||
} | ||
return packer.make_can_msg("CRUISE_BUTTONS", 5, values) |
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
Oops, something went wrong.