Skip to content

Hyundai: make LFA and LKAS steering consistent - #2591

Merged
adeebshihadeh merged 1 commit into
masterfrom
damp
Jul 30, 2025
Merged

adeebshihadeh merged 1 commit into
masterfrom
damp

Conversation

@adeebshihadeh

@adeebshihadeh adeebshihadeh commented Jul 30, 2025

Copy link
Copy Markdown
Contributor

Fixes commaai/openpilot#35683


For both steer control types, DAMP_FACTOR was 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_FACTOR is cycled such that we can see what the ADRV does:
image

@github-actions github-actions Bot added DBC signals car related to opendbc/car/ hyundai labels Jul 30, 2025
@adeebshihadeh
adeebshihadeh merged commit 83cf9da into master Jul 30, 2025
@adeebshihadeh
adeebshihadeh deleted the damp branch July 30, 2025 02:22
spektor56 pushed a commit to spektor56/opendbc that referenced this pull request 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

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

address 64 right.?

STEER_MODE has overlapping bits
NEW_SIGNAL_2 has overlapping bits

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

car related to opendbc/car/ DBC signals hyundai

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fix EV6 oscillations

2 participants