opendbc icon indicating copy to clipboard operation
opendbc copied to clipboard

Hyundai CAN: Fix `Elect_Gear_Shifter` Sport Gear value

Open sunnyhaibin opened this issue 2 years ago • 8 comments

The value for Sport gear is wrong in the DBC for EV/HEV/PHEV platforms.

Route ID: 26a38e4bf36bb74a|2023-11-15--10-11-14

Prerequisite of

  • https://github.com/commaai/openpilot/pull/30648

image

sunnyhaibin avatar Dec 01 '23 16:12 sunnyhaibin

@adeebshihadeh sorry for the ping but this would make our life nicer on hev platforms <3

devtekve avatar Dec 15 '23 10:12 devtekve

Where did the old value come from? How many platforms have been checked? Have all three of EV, PHEV, and HEV been checked?

adeebshihadeh avatar Dec 15 '23 18:12 adeebshihadeh

I have same car as DevTekVe and would like this change also.

This was my video from above sunny has inputted here to commit to master

ghostnetworksolutions avatar Dec 17 '23 15:12 ghostnetworksolutions

No real source for the old values, it was copied from CF_Lvr_Gear in the OG port: https://github.com/commaai/openpilot/pull/1362, commit: https://github.com/commaai/openpilot/commit/e43fa32077e7d1dfd75dfdd9f18ab21525dde162

sshane avatar Dec 20 '23 11:12 sshane

Here's a random Ioniq PHEV, it can be both 4 and 8, so we can't remove the 8 signal def:

image


Can you guys try to replicate this so we can understand the meaning? Are there different sport modes? Try to toggle all the gears/sport options and post a route.

If we can verify that 8 is also sport, then we can merge 4 and 8

sshane avatar Dec 21 '23 12:12 sshane

@sshane Brought back 8.

sunnyhaibin avatar Dec 22 '23 05:12 sunnyhaibin

@sshane

Will there be anything else that is needed to merge this?

ghostnetworksolutions avatar Jan 07 '24 01:01 ghostnetworksolutions

Here's a random Ioniq PHEV, it can be both 4 and 8, so we can't remove the 8 signal def:

image

Can you guys try to replicate this so we can understand the meaning? Are there different sport modes? Try to toggle all the gears/sport options and post a route.

If we can verify that 8 is also sport, then we can merge 4 and 8

Been a while but this came up again recently :D, I will need to test, but you asked

Are there different sport modes?

Technically, you can either have it on "S" or you can also have it on a specific gear selected (1 thru 6) and that's still sports mode

devtekve avatar Jun 18 '24 07:06 devtekve