Closed
Conversation
There was a problem hiding this comment.
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Following up on my previous to you I think the brake pedal from the driver is at
EHBS_HSC2_FrP00, BrkPdlAppdHSC2and not atGW_HSC2_HCU_FrP00, EPTBrkPdlDscrtInptStsHSC2, that includes ACC/Radar braking (albeit delayed i think), but not KERS braking I don't think.I thought it would be helpful to update it and push it to you to save the trouble - including the dbc extras and the carstate.py - but I also wasnt sure if to do this to your opendbc repo? or this one ? or well anywhere - so ive done it here for now, but can do it somewhere else, just ask.
Further reading leads me to believe I also need to update the safety to use 0x1b6 not 0xaf I assume, but it is 1:20am and i've not go to it yet.
Pictures of analysis below from our chat / my messages earlier.
Above red is driver brake, green is acc requesting acceleration/deceleration, yellow is EPTBrkPdlDscrtInptStsHSC2,.
You can see in the first section, only ACC requests brake, minimal pedal force kPa (purple), but doesnt trigger
EPTBrkPdlDscrtInptStsHSC2, the second section you can see similar and a long delay between the kPa starting &EPTBrkPdlDscrtInptStsHSC2kicking true, and finally at the end you can see a manual brake press, aligned with the brake kPa, followed later by theEPTBrkPdlDscrtInptStsHSC2a bit delayed. I am fairly sure given I saw up to 2.4ish seconds between the brake force applying and theEPTBrkPdlDscrtInptStsHSC2msg its not suitable to know the brake pedal is pressed by the driver when compared to ACC request acceleration or WhlBrkPrsSome other reference images of similar above - interesting points are as cruise is reduced, torque of acc goes negative and to zero before and then triggers the acc accel requests - suspect this is the KERS doing its thing before it decides "I am not reducing fast enough, I better brake".