Hyundai: make LFA and LKAS steering consistent - #2591
Merged
Merged
Conversation
crwusiz
reviewed
Jul 30, 2025
| SG_ ADAS_StrAnglReqVal : 82|14@1- (0.1,0) [0|176.7] "Deg" GW_RGW,MDPS,SFA | ||
| SG_ ADAS_ACIAnglTqRedcGainVal : 96|8@1+ (0.004,0) [0|1] "" GW_RGW,MDPS,SFA | ||
| SG_ NEW_SIGNAL_3 : 111|8@0+ (1,0) [0|255] "" XXX | ||
| SG_ DAMP_FACTOR : 64|8@1+ (1,0) [0|255] "" XXX |
Contributor
There was a problem hiding this comment.
address 64 right.?
STEER_MODE has overlapping bits
NEW_SIGNAL_2 has overlapping bits
Contributor
Author
There was a problem hiding this comment.
want to write and upstream a test for this?
spektor56
pushed a commit
to spektor56/opendbc
that referenced
this pull request
Aug 8, 2025
FeistyFinn
pushed a commit
to FeistyFinn/opendbc
that referenced
this pull request
Jun 25, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes commaai/openpilot#35683
For both steer control types,
DAMP_FACTORwas set to 0, which is apparently invalid. However, the ADRV ECU seems to default this to a different value than the EPS. ADRV clips to the min (3), and the EPS seems to use around 100 if it gets an invalid value. It's possible there's a more optimal value, but starting with that since it's what the stock system uses.In

5bef1e6eece568e8/0000006d--302abdb32f,LKAS/DAMP_FACTORis cycled such that we can see what the ADRV does: