-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
Conversation
selfdrive/car/ford/carstate.py
Outdated
# 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) |
There was a problem hiding this comment.
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.
(third plot from the top: orange is the previous signal, blue is the current signal)
* todo * nope * not this one * yep * passes * clean up * not used! * oop * update refs old-commit-hash: 7de2aac
Confirmed this new signal does not have the problem in the Aviator described in #27095