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.
HKG: only allow engagement on user button press (commaai#24140)
* use deque for prev_cruise_buttons * stash * disallow engagement if resume or decel isn't pressed * fix buttons * reduce chances of causing 30-frame fault Fix clu11 drive down cancel times * Revert "reduce chances of causing 30-frame fault" This reverts commit 0f54c05. * consider pause/resume button * stash * Revert "stash" This reverts commit 551ca7b. * sadly some cars need 8 op frames (identical to 4 updates from CLU11) * add main button * 6 should be safe * use max * clean up * change to 4 samples and process all messages received, like panda * bump panda * test: replay segments with known re-engagements on-device * Revert "test: replay segments with known re-engagements on-device" This reverts commit 9730c3c. * need prev_cruise_buttons as we don't run every CAN message through carstate * more generic * extend * Update selfdrive/car/interfaces.py Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com> * 3% faster at 1000000 loops * update refs Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
- Loading branch information
1 parent
60b7114
commit efa98d2
Showing
5 changed files
with
27 additions
and
13 deletions.
There are no files selected for viewing
Submodule panda
updated
2 files
+35 −20 | board/safety/safety_hyundai.h | |
+43 −9 | tests/safety/test_hyundai.py |
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 |
---|---|---|
@@ -1 +1 @@ | ||
fe7b24c1914046a3a7be19b6e812984e7e14301d | ||
17141a8240bd8ec5defa1de2da937544c52ef0fe |