Revert to using CLU15 message for Gear Selection for Compatability Reasons#362
Revert to using CLU15 message for Gear Selection for Compatability Reasons#362rbiasini merged 38 commits intocommaai:develfrom
Conversation
bug fix
Didn’t realise this was removed as well!
|
Umm okay... but…. Why? I’m not sure that it makes sense for OP to allow usage in Sequential mode on any car. Sequential mode isn’t to be used ever unless well… you think you’re somehow benefiting from shifting the car manually… of which you probably picked the wrong car to begin with and probably think self-driving cars are silly because IMA CONTROL MAH OWN CAR CUZZ I’M MAN AND MAN CONTROL CAR AND MACHINE CAN SUCK IT. Also, anything other than drive is no place for OP... ever. Unless you're saying, OP is seeing it as being in drive... of which, you could be on to something! Then again... what do I know? I'll tell you... nothing. Carry on. |
|
Because autos don't downshift properly on hill descents. Feel free to provide fixes to the auto code base, but at this stage that is out of scope of this 'driver aid' |
|
IMHO… that has nothing to do with Openpilot.
Just my 2 cents...
…On Sep 12, 2018, 8:25 AM -0400, Andrew Frahn ***@***.***>, wrote:
Because autos don't downshift properly on hill descents
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.
|
|
It's an ACC issue. There is no other reason OP can't fully drive those roads, but a forced downshift will force a manual drive. The auto is happy to sit at 3000rpm for ascent, but won't auto down shift to allow more than 2250rpm on descent. The downshift is not sufficient on these vehicles. OP should not be restricted due to bad auto design. |
|
@emmertex , As we discussed, can you please keep the Santa Fe the way it was? Ideally, I prefer listening to the gear from the engine module rather than the CLU, so we should find that source on all Kia/hyundai |
Add logic to use transmission message rather than cluster message for all gear selections UNLESS the car in question does not have the known good transmission messages
|
Without actual access to an Elantra (or possibly another model with the same issue/transmission) this is the best I can do. So since that is the only known ‘issue’ vehicle at this stage I am reading both cluster and transmission in carstate.py, and defining which one is to be used in interface.py with an if statement. Please note the last 2 commits are not tested so please review for typo’s and mistakes. |
|
|
||
| # gear shifter | ||
| ret.gearShifter = self.CS.gear_shifter | ||
| if candidate == CAR.ELANTRA: |
|
if somebody can test this on a Elantra and a non-Elantra, I'll merge it. |
Latest Elantra values that correlate to progress Community branch.
|
Completed test on 2017 Elantra Ultimate with Legacy Wiring Brief of test: Checked out and pulled latest Hyundai-Dev branch (#362) OP loaded with no issues. Initial drive caused "Steering Temporarily Unavailable" on attempt to engage.
Modified carstate.py to reflect this: Rebooted
However, steering was found to still be unreliable and sporadic. Updating Interface.py with latest tuning values from Community branch resulted in no changes to aggressive OP steering behavior. |
Update for Elantra on Hyundai-Dev Branch
|
Merged changes made by TK211X |
|
@emmertex, if you give the green light (tested on Elantra too) I would like to merge this. |
|
Yes, all tested and good to go.
Was tested by me and @TK211X
…On Wed., 10 Oct. 2018, 7:41 pm rbiasini, ***@***.***> wrote:
@emmertex <https://github.com/emmertex>, if you give the green light
(tested on Elantra too) I would like to merge this.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#362 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AE2Dle_0xLkijq_WBJWZpuQiEjpOr6Khks5ujbnQgaJpZM4Wkf7z>
.
|
…asons (commaai#362) * hyundai WIP * steer_driver_factor is 1 * removed unnecessary file * removed unnecessary code * Update carcontroller.py bug fix * safety tuning and fixed interface stiffness * better lateral tuning, some fixes * Fix set speed * added camera state reading, autoresume from stop, cancel on accel, hud alerts * WIP * Updated for Kia Sorento *WIP* * Cleanup * clean2 * Bug Fixes * pre-merge * Add all the cars! * Panda to auto-detect Camera Bus * Move Checksum Check * Final Sorento Tuning * Make CAN3 for Cam default * Update README.md * update panda, minor aesthetic updates * few other minor changes * added steer not allowed alert * bup panda version to force panda update * fixed camera alerts * Revert to using CLU15 for Gear Selection * Missing Defines Didn’t realise this was removed as well! * Change Gear Selection Definitions Add logic to use transmission message rather than cluster message for all gear selections UNLESS the car in question does not have the known good transmission messages * Revert Camera CAN Bus * self.candidate * fixed fingerpint, tested on Sorento * Update for Elantra on Hyundai-Dev Branch Latest Elantra values that correlate to progress Community branch.
…ility Reasons (commaai#362)" This reverts commit c1e4731.
…asons (commaai#362) * hyundai WIP * steer_driver_factor is 1 * removed unnecessary file * removed unnecessary code * Update carcontroller.py bug fix * safety tuning and fixed interface stiffness * better lateral tuning, some fixes * Fix set speed * added camera state reading, autoresume from stop, cancel on accel, hud alerts * WIP * Updated for Kia Sorento *WIP* * Cleanup * clean2 * Bug Fixes * pre-merge * Add all the cars! * Panda to auto-detect Camera Bus * Move Checksum Check * Final Sorento Tuning * Make CAN3 for Cam default * Update README.md * update panda, minor aesthetic updates * few other minor changes * added steer not allowed alert * bup panda version to force panda update * fixed camera alerts * Revert to using CLU15 for Gear Selection * Missing Defines Didn’t realise this was removed as well! * Change Gear Selection Definitions Add logic to use transmission message rather than cluster message for all gear selections UNLESS the car in question does not have the known good transmission messages * Revert Camera CAN Bus * self.candidate * fixed fingerpint, tested on Sorento * Update for Elantra on Hyundai-Dev Branch Latest Elantra values that correlate to progress Community branch.
…asons (commaai#362) * hyundai WIP * steer_driver_factor is 1 * removed unnecessary file * removed unnecessary code * Update carcontroller.py bug fix * safety tuning and fixed interface stiffness * better lateral tuning, some fixes * Fix set speed * added camera state reading, autoresume from stop, cancel on accel, hud alerts * WIP * Updated for Kia Sorento *WIP* * Cleanup * clean2 * Bug Fixes * pre-merge * Add all the cars! * Panda to auto-detect Camera Bus * Move Checksum Check * Final Sorento Tuning * Make CAN3 for Cam default * Update README.md * update panda, minor aesthetic updates * few other minor changes * added steer not allowed alert * bup panda version to force panda update * fixed camera alerts * Revert to using CLU15 for Gear Selection * Missing Defines Didn’t realise this was removed as well! * Change Gear Selection Definitions Add logic to use transmission message rather than cluster message for all gear selections UNLESS the car in question does not have the known good transmission messages * Revert Camera CAN Bus * self.candidate * fixed fingerpint, tested on Sorento * Update for Elantra on Hyundai-Dev Branch Latest Elantra values that correlate to progress Community branch.
* End 2 end lat toggle * bool values don't have quotes * strip whitespace * Clean up * Clean up * Clean up * Fix * fix * KL model
* MADS: HKG CAN-FD: Disallow cruise buttons to engage when pcmCruiseSpeed is off * handle states properly * this is better * make sure main button is pressed * oops flipped main * same behavior * handle cruise main button universally * both * not needed * oops * wtf how did i miss
Issues with using LVR12 message are as follows.
On 8 Speed, if in drive, but switched to "sport" mode, it no longer see's drive
On vehicles equipped with paddles for gear selections, pressing a paddle is seen as leaving drive.
Hyundai Eleantra does not create this message.
None of these issues are present when using the CLU15 message, while still allowing the same featureset.