-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hyundai: Disable longitudinal for HDA2 without ADAS Driving ECU #1295
base: master
Are you sure you want to change the base?
Conversation
Depends on, and will need a rebase after #1294. |
Offline validations passed. |
This PR has had no activity for 9 days. It will be automatically closed in 2 days if there is no activity. |
HDA2 kinda means "has ADAS ECU", or at least that's what I meant at the time. It's probably time we rethought some of these names and classes. |
hda2_longitudinal = hda2 and Ecu.adas in [fw.ecu for fw in car_fw] and \ | ||
candidate not in CANFD_UNSUPPORTED_LONGITUDINAL_CAR | ||
|
||
ret.experimentalLongitudinalAvailable = hda2_longitudinal or \ | ||
candidate not in (CANFD_UNSUPPORTED_LONGITUDINAL_CAR | CANFD_RADAR_SCC_CAR) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't see how this works? It's supposed to remove support for some cars, but this adds an or
to the existing condition
Description
For some HDA2 cars, the ECU that broadcasts SCC messages is still undetermined (historically should be the ADAS Driving ECU), therefore there is no known method to enable longitudinal control on these yet. Disable longitudinal control for the time being for applicable cars.
Offline Validation
pytest opendbc
pytest selfdrive/car/tests
selfdrive/test/process_replay/test_processes.py
Affects