Skip to content
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 CAN-FD: move HDA2 flag to common Hyundai safety #1638

Merged
merged 2 commits into from
Sep 11, 2023

Conversation

@sunnyhaibin sunnyhaibin force-pushed the hkg-canfd-hda2-common branch from f33ee3a to 336d98c Compare September 8, 2023 05:10
@adeebshihadeh adeebshihadeh merged commit 428b303 into commaai:master Sep 11, 2023
@sunnyhaibin sunnyhaibin deleted the hkg-canfd-hda2-common branch September 11, 2023 20:58
bool hyundai_alt_limits = false;
uint8_t hyundai_last_button_interaction; // button messages since the user pressed an enable button

void hyundai_common_init(uint16_t param) {
hyundai_ev_gas_signal = GET_FLAG(param, HYUNDAI_PARAM_EV_GAS);
hyundai_hybrid_gas_signal = !hyundai_ev_gas_signal && GET_FLAG(param, HYUNDAI_PARAM_HYBRID_GAS);
hyundai_camera_scc = GET_FLAG(param, HYUNDAI_PARAM_CAMERA_SCC);
hyundai_canfd_hda2 = GET_FLAG(param, HYUNDAI_PARAM_CANFD_HDA2);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sunnyhaibin can we just use one flag that describes if it's HDA2 or not? Has HDA2 ever existed on a purely CAN car?

@sshane sshane added car safety vehicle-specific safety code cleanup labels Sep 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
car safety vehicle-specific safety code cleanup
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants