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

GM Camera ACC ICE: ECM respects different brake signal than camera #1123

Open
sshane opened this issue May 25, 2024 · 2 comments
Open

GM Camera ACC ICE: ECM respects different brake signal than camera #1123

sshane opened this issue May 25, 2024 · 2 comments
Labels
bug car related to opendbc/car/ gm

Comments

@sshane
Copy link
Contributor

sshane commented May 25, 2024

This is a stock ACC route where the user pressed the brake and caused an ACC fault we alerted for. It appears that the camera uses what we found for the Bolt, a single bit signal: ECMEngineStatus->BrakePressed as it stayed engaged until the ECM faulted. However the ECM might look at ECMAcceleratorPos->BrakePedalPos or EBCMBrakePedalPosition->BrakePedalPosition. These bugs are ridiculous!

I performed extensive tests to find an appropriate brake signal for the Bolt, so this looks like it might only apply for ICE GMs. Perhaps this only surfaces when ACC is braking itself as the user is adding little brake pressure compared to what is already being applied, and the ECM looks at the position.

image

dc7716b32bf25574/2024-05-24--18-30-20

@sshane sshane added bug car related to opendbc/car/ gm labels May 25, 2024
@garrettpall
Copy link
Contributor

I’m having the same issue with my SDGM car with OP long enabled (using custom hardware). I will do some testing this week

@garrettpall
Copy link
Contributor

Using ret.brakePressed = ret.brake >= 8 seemed to fix the issue with my car. Will continue to test this week

@sshane sshane transferred this issue from commaai/openpilot Aug 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug car related to opendbc/car/ gm
Projects
None yet
Development

No branches or pull requests

2 participants