openpilot icon indicating copy to clipboard operation
openpilot copied to clipboard

VW: Steer to zero, for large values of zero

Open jyoung8607 opened this issue 1 year ago • 11 comments

Description

Resolves #30495.

Fix

Slightly increased Volkswagen default minSteerSpeed, from the effective global default of 0.3 m/s up to 0.4 m/s. Since we already considered 0.67 mph as "steer to zero", tweaked the doc generator to show the same for VW's 0.89 mph.

We could definitely do this only for the affected EPS rack-families, but we won't get EPS firmware for installs without comma power, and getting back 0.1 m/s doesn't seem worth adding any complexity. So, this will just apply to all VW.

Verification

Test-driven by affected users.

Route

Route: f39cf149898833ff/2024-02-15--17-27-50/0

jyoung8607 avatar Feb 14 '24 06:02 jyoung8607

jyoung8607 - I installed your branch with the fix in it last night and tested it, and it worked like a champ. Instead of causing the fault error when it pulls away from a stop and tries to turn, it displays "Steering unavailable under 1 mile per hour" or something similar and motors on.

dukeajuke avatar Feb 15 '24 13:02 dukeajuke

Glad to hear it's functionally effective, but I intended for openpilot to stay silent (not alert about low speed) as well. There's one more alert I need to tweak. I'll try to push an update for that in the next couple days.

jyoung8607 avatar Feb 15 '24 16:02 jyoung8607

@dukeajuke Check for updates and try it again, it shouldn't display the low speed alert anymore.

jyoung8607 avatar Feb 15 '24 22:02 jyoung8607

@jyoung8607 I saw this PR and test this branch on my 2023 Kodiaq RS (Europe import to Taiwan). Kodiaq RS's EPS seems more critical than other VW cars. This is the route shared with you. thank you. 0bbe367c98fa1538/2024-02-19--06-44-48/0

Saber422 avatar Feb 19 '24 08:02 Saber422

@jyoung8607 I saw this PR and test this branch on my 2023 Kodiaq RS (Europe import to Taiwan). Kodiaq RS's EPS seems more critical than other VW cars. This is the route shared with you. thank you. 0bbe367c98fa1538/2024-02-19--06-44-48/0

This looks like a different set of conditions entirely. You were moving at nearly 6 km/h with a high steering angle, looks like the EPS refused to steer any further than the 130 degrees you manually steered it to and eventually faulted.

I'm sure we can deal with it somehow, but I'll need to see more examples to fully understand the triggering conditions. Can you open a separate issue, add this route to it, and then add some more examples as you're able to reproduce it?

jyoung8607 avatar Feb 20 '24 03:02 jyoung8607

@dukeajuke @Gyrohammer Have either of you tested the current version of this PR? Need your feedback to move forward.

jyoung8607 avatar Feb 21 '24 20:02 jyoung8607

@dukeajuke @Gyrohammer Have either of you tested the current version of this PR? Need your feedback to move forward.

Been testing for the past few days, everything seems to be working correctly.

Gyrohammer avatar Feb 21 '24 20:02 Gyrohammer

Ready for review then!

The process_replay difference is expected, due to the updated minSteerSpeed parameter.

***** results for segment regen8BDFE7307A0|2023-10-30--23-19-36--0 *****
    controlsd
        ref: https://commadataci.blob.core.windows.net/openpilotci/regen8BDFE7307A0|2023-10-30--23-19-36--0_controlsd_7d25b1f7d0bd3b[506](https://github.com/commaai/openpilot/actions/runs/7922952955/job/21631686752?pr=31450#step:6:507)fa4e72ff893728894eb1a45.bz2
        new: /tmp/openpilot/openpilot/selfdrive/test/process_replay/fakedata/regen8BDFE7307A0|2023-10-30--23-19-36--0_controlsd_2d6a36ff6533c71bebd31bacc13c9f89f7286bfe.bz2

        carParams.minSteerSpeed: 2
    radard
    plannerd
    calibrationd
    dmonitoringd
    locationd
    paramsd
    ubloxd
    torqued

jyoung8607 avatar Feb 21 '24 20:02 jyoung8607

I did and responded with results. It fixed the problem but displays a message "Steering unavailable under 5 mph" when it tries to steer from a stop. Jason mentioned he may try to suppress the message.

Sent from my Verizon, Samsung Galaxy smartphone

-------- Original message -------- From: Gyrohammer @.> Date: 2/21/24 3:34 PM (GMT-05:00) To: commaai/openpilot @.> Cc: David Whapham @.>, Mention @.> Subject: Re: [commaai/openpilot] VW: Steer to zero, for large values of zero (PR #31450)

@dukeajukehttps://github.com/dukeajuke @Gyrohammerhttps://github.com/Gyrohammer Have either of you tested the current version of this PR? Need your feedback to move forward.

Been testing for the past few days, everything seems to be working correctly.

— Reply to this email directly, view it on GitHubhttps://github.com/commaai/openpilot/pull/31450#issuecomment-1957862411, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AEJJEUF42QLEKG3RHM5YCVDYUZK47AVCNFSM6AAAAABDHWO5T6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNJXHA3DENBRGE. You are receiving this because you were mentioned.Message ID: @.***>

dukeajuke avatar Feb 21 '24 22:02 dukeajuke

I did and responded with results. It fixed the problem but displays a message "Steering unavailable under 5 mph" when it tries to steer from a stop. Jason mentioned he may try to suppress the message.

We received that, and I pushed an update later that same day that should suppress it. Make sure you have the latest.

jyoung8607 avatar Feb 21 '24 22:02 jyoung8607

Thanks for contributing to openpilot! In order for us to review your PR as quickly as possible, check the following:

  • Convert your PR to a draft unless it's ready to review
  • Read the contributing docs
  • Before marking as "ready for review", ensure:
    • the goal is clearly stated in the description
    • all the tests are passing
    • the change is something we merge
    • include a route or your device' dongle ID if relevant

github-actions[bot] avatar Mar 02 '24 00:03 github-actions[bot]

I request this be added to 0.9.7 milestones.

jyoung8607 avatar May 08 '24 16:05 jyoung8607

Good to review or still a WIP?

adeebshihadeh avatar May 08 '24 17:05 adeebshihadeh

Functional and good to review. @sshane may have opinions on how the docs code was tweaked.

jyoung8607 avatar May 08 '24 17:05 jyoung8607

@jyoung8607 any higher and I think we'll have to show 1 mph in the docs :wink:

sshane avatar May 08 '24 21:05 sshane