forked from commaai/panda
-
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.
Toyota: generic steer fault workaround safety (commaai#939)
* toyota steer fault safety * fix * alternative safety * no comment * should be good * same behavior, a bit simpler * better tests * fix comment * update safety comment * const is actual number of messages * Fix bug * misra * Fix test * clean up logic a bit clean up logic a bit fix * fix fix * clean up tests * unsigned * forgot to rename message when merged * Comments Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com> * Update names Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com> * rename rest of variables * real time checks * clean up safety tests * revert * add this * clean up * better name * use common steering checks * reverse order * make common * re-organize the safety * clean up safety_toyota * more clean up * add comment back * 19 * recover * some variable name clean up * rename and reset `valid_steering_msg_count`, another recover message * move comment * remove reset_toyota_timer, minor test clean up * common test * use init_tests * threshold used to be: frame you can cut steer on, now it's min num of valid frames (next frame you can cut, 18+1) * Update tests/safety/test_toyota.py Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com> * fix realtime * Update board/safety/safety_toyota.h * Apply suggestions from code review * Update board/safety/safety_toyota.h Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
- Loading branch information
1 parent
671b5ae
commit 0ca23b6
Showing
7 changed files
with
122 additions
and
11 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
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