Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ford: use more reliable gear message #32886

Merged
merged 9 commits into from
Jul 3, 2024
Merged

Ford: use more reliable gear message #32886

merged 9 commits into from
Jul 3, 2024

Conversation

sshane
Copy link
Contributor

@sshane sshane commented Jul 1, 2024

Confirmed this new signal does not have the problem in the Aviator described in #27095

image

@github-actions github-actions bot added car vehicle-specific ford labels Jul 1, 2024
@sshane sshane force-pushed the ford-good-gears branch from 16a3b08 to 92162d3 Compare July 2, 2024 04:44
@sshane sshane force-pushed the ford-good-gears branch from f6938b4 to b520ee6 Compare July 2, 2024 06:05
Comment on lines 18 to 21
# TODO
# - [x] NOPE: PowertrainData_10->GearLvr_D_ActlDrv (goes into L instead of D for the rest of the drive randomly, commonly when current message goes into unknown gear)
# - [ ] PowertrainData_10->TrnRng_D_Rq
# - [x] NOPE: TransGearData->GearLvrPos_D_Actl (goes into N instead of P, this is the transmission gear)
Copy link
Contributor Author

@sshane sshane Jul 2, 2024

Choose a reason for hiding this comment

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

The signal previously used before adding the Lincoln Aviator in #27095 also goes to N around the time that these three candidates do, in cases where the current signal does not. It seems we are currently missing some cases where the user or car puts the gear into N which the camera listens to and disengages, so this seems like a good all around change.

The new signals (and the one before the current one) also switch to N when switching gears which makes sense if it's the actual gear of the transmission/powertrain system. It looks like the current signal is a gear request from the gear shift module (Gsm), which might not be the true gear.

image

(third plot from the top: orange is the previous signal, blue is the current signal)

@sshane
Copy link
Contributor Author

sshane commented Jul 2, 2024

Some mismatches greater than 0.1s, in all cases the new signal (gear2) switched faster than the current signal (og_gear)

View

Here the PCM cruise state signal fell when the PCM gear went to N, but this wasn't captured in our current gear request signal.
image
image
image

For segments with mismatches greater than 0.02s, it appears the common theme is that this new signal goes to N on changing edge of gears or just switches earlier:

View

image
image
image
image

Checked routes: 14996, dongles: 96 platforms: {<CAR.FORD_EXPLORER_MK6>: 6643, <CAR.FORD_BRONCO_SPORT_MK1>: 2113, <CAR.FORD_MAVERICK_MK1>: 3599, 'FORD_FOCUS_MK4': 996, <CAR.FORD_ESCAPE_MK4>: 1389, <CAR.FORD_F_150_MK14>: 256}

@sshane
Copy link
Contributor Author

sshane commented Jul 3, 2024

The current signal also does not capture quickly changing into N and back to D:

View

image

Process replay diff is expected, we get this PowertrainData_10 message slightly later than the original message:

View

image

@sshane sshane marked this pull request as ready for review July 3, 2024 04:50
@sshane sshane merged commit 7de2aac into master Jul 3, 2024
16 of 17 checks passed
@sshane sshane deleted the ford-good-gears branch July 3, 2024 05:22
Edison-CBS pushed a commit to Edison-CBS/openpilot that referenced this pull request Sep 15, 2024
* todo

* nope

* not this one

* yep

* passes

* clean up

* not used!

* oop

* update refs
old-commit-hash: 7de2aac
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
car vehicle-specific ford
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant