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

VW MLB: Audi A4/S4 #793

Draft
wants to merge 10 commits into
base: master
Choose a base branch
from
Draft

VW MLB: Audi A4/S4 #793

wants to merge 10 commits into from

Conversation

jyoung8607
Copy link
Collaborator

@jyoung8607 jyoung8607 commented Mar 15, 2023

  • support MLB CRCs, some for new messages and some conflict/overlap with existing messages

@@ -108,7 +108,7 @@ void init_crc_lookup_tables() {
gen_crc_lookup_table_16(0x1021, crc16_lut_xmodem); // CRC-16 XMODEM for HKG CAN FD
}

unsigned int volkswagen_mqb_checksum(uint32_t address, const Signal &sig, const std::vector<uint8_t> &d) {
unsigned int volkswagen_mxb_checksum(uint32_t address, const Signal &sig, const std::vector<uint8_t> &d) {
Copy link
Contributor

Choose a reason for hiding this comment

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

what do you think of mxb -> mqb_mlb for better grep-ability?

Copy link
Collaborator Author

@jyoung8607 jyoung8607 Mar 15, 2023

Choose a reason for hiding this comment

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

I'm okay with either. The whole set of abstractions needs another look, was focused on passing tests tonight, will look at it with fresh eyes later.

@rusefillc
Copy link
Contributor

@jyoung8607 I am interested in this PR, how is it going?

@jyoung8607
Copy link
Collaborator Author

@jyoung8607 I am interested in this PR, how is it going?

Started to reply, and it turned into a general update which I put in the openpilot PR. Let me know if you have other questions, or if you have a supportable vehicle and would like to help.

@rusefillc
Copy link
Contributor

Let me know if you have other questions, or if you have a supportable vehicle and would like to help.

I do not actually use openpilot at all, my only interest is the nice DBC which is part of this larger change here. Thus #1008 as an attempt to help with just the DBC merge.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants