openpilot
openpilot copied to clipboard
VW MQB: Added support for APA racks to EPS configuration tool
APA steering racks use a different bit to represent whether the ECU should enable steering assist. This change supports those APA steering racks.
Tested on a VW MK7 Golf sportsvan.
Testrun output:
root@localhost:/data/openpilot/selfdrive/debug$ ./vw_mqb_config.py enable
opening device 3e0031001251393031343235 0xddcc
connected
EPS diagnostic data
Part No HW: 5Q0909143E
Part No SW: 5Q0909143K
SW Version: 2033
Component: MQB_PP_APA
Coding: 01000010005000
ASAM Dataset: EV_SteerAssisVWBSMQBA
Lane Assist: DISABLED
EPS parameterization (per-vehicle calibration) data
Version of system parameters: 51
Vehicle type: 9A
Index of characteristic curve: 90
Version of characteristic values: 40
Version of memory map: 20
Attempting configuration update
New coding: 01000011005000
EPS configuration successfully updated
Thank you for doing this! Support for the APA racks is long overdue, and generalizing the byte/bit variables will be useful later for adding a third variant supporting the TRW racks in MQB-A0 vehicles. I think it may actually fix issues with older ZFLS racks with shorter-than-maximum coding strings as well.
Can we trouble you for a screenshot from VCDS or OBDeleven showing the backing ASAM dataset documentation for the bit we're flipping here? In the meantime, sometime in the next couple days I'll review in more detail and re-test to make sure nothing broke in the support for my ZFLS rack with these changes.
Can we trouble you for a screenshot from VCDS or OBDeleven showing the backing ASAM dataset documentation for the bit we're flipping here? In the meantime, sometime in the next couple days I'll review in more detail and re-test to make sure nothing broke in the support for my ZFLS rack with these changes.
I got the information about what bits does what from this website https://vagcode.info/components/8664d0e864943a58c78503a4194b9874.html seams like they got the information from a file called 5Q0-909-143.clb
@jyoung8607 look good to you?
@jyoung8607 look good to you?
LGTM other than the proposed changes.