Skip to content

HKG: resume from standstill for HDA1 CAN-FD - #26069

Merged
adeebshihadeh merged 11 commits into
commaai:masterfrom
hoomoose:hda1-resume-from-standstill
Oct 19, 2022
Merged

adeebshihadeh merged 11 commits into
commaai:masterfrom
hoomoose:hda1-resume-from-standstill

Conversation

@hoomoose

@hoomoose hoomoose commented Oct 13, 2022 •

Copy link
Copy Markdown
Contributor

Description
Resume from Standstill does not work for HKG Can-FD cars with HDA1. This is fixed by putting the can send for Cruise Buttons on bus 6 rather than bus 5. The fix requires an IF statement, which I have not written since I am not sure how to do so.
This fix only solves the problem for HDA1 cars with the 0x1cf signal like the EV6 and I5.
Solves issue: #25771

Prerequisite
This requires a simple Panda change on L39 of safety_hyundai_canfd.h
Bus 0 needs to be bus 2. That is it.
see: commaai/panda#1102

Verification
This fix has been employed in a fork hoomoose:hda1ev6i5 written specifically for hda1 ev6 and I5 cars and has been successfully tested/used by many!

@mattwebbio

Copy link
Copy Markdown
Contributor

Also interested in seeing this get merged!

Comment thread selfdrive/car/hyundai/hyundaicanfd.py Resolved
Comment thread selfdrive/car/hyundai/hyundaicanfd.py Resolved
Comment thread selfdrive/car/hyundai/hyundaicanfd.py Resolved
@hoomoose

Copy link
Copy Markdown
Contributor Author

Current code works!

hoomoose and others added 4 commits October 18, 2022 12:17
Co-authored-by: Shane Smiskol <shane@smiskol.com>
Co-authored-by: Shane Smiskol <shane@smiskol.com>
@adeebshihadeh adeebshihadeh changed the title HKG: Resume from Standstill fix for HDA1 Canfd w/ 0x1cf HKG: resume from standstill for HDA1 CAN-FD Oct 19, 2022
@adeebshihadeh

Copy link
Copy Markdown
Contributor

Thanks for all the work on HDA1 @hoomoose!

@adeebshihadeh
adeebshihadeh merged commit 3ee8572 into commaai:master Oct 19, 2022
66thparallel pushed a commit to 66thparallel/janes_openpilot_fork that referenced this pull request May 1, 2026
* Cruise Button Press on bus 6 for HDA1 Canfd

* use bus helper

* Update hyundaicanfd.py

* Update hyundaicanfd.py

* Update hyundaicanfd.py

* Update hyundaicanfd.py

* Update selfdrive/car/hyundai/hyundaicanfd.py

Co-authored-by: Shane Smiskol <shane@smiskol.com>

* Update selfdrive/car/hyundai/hyundaicanfd.py

Co-authored-by: Shane Smiskol <shane@smiskol.com>

* bump panda

Co-authored-by: Shane Smiskol <shane@smiskol.com>
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 3ee8572
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants