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

Unable to activate OP while brake hold active #33988

Closed
jsegill opened this issue Dec 2, 2021 · 16 comments · Fixed by #34384 or #34394
Closed

Unable to activate OP while brake hold active #33988

jsegill opened this issue Dec 2, 2021 · 16 comments · Fixed by #34384 or #34394
Labels
bug car vehicle-specific toyota
Milestone

Comments

@jsegill
Copy link

jsegill commented Dec 2, 2021

Describe the bug

When brake hold is enabled and in effect on a Toyota Corolla HB 2019, OP will not engage.

Before 0.8.11, OP would engage while in a brake hold with a lead car. Not allowing OP to engage while at a stop, makes stop and go traffic disengagements more frustrating. One cannot simply re-enable OP after making a correction resulting in a stop of the car. Also trying to re-enable OP with brake hold active, results in the brake hold being released with no OP engagement.

Stock Toyota system allows for ACC engagement while brake hold is active. Stock Toyota ACC requires a second push of the resume button to resume ACC functions.

I believe this stems from PR commaai/openpilot#22810 to fix issue Issue commaai/openpilot#22791 . Anyway to prevent the integral build up, mentioned in Issue commaai/openpilot#22791 so OP may be enabled again when brake hold is active?

What hardware does this issue affect?

comma three, comma two

Which car does this affect?

Toyotas; Toyota Corolla HB 2019

Provide a route where the issue occurs

99725b56a15b5510|2021-12-01--15-16-19

openpilot version

0.8.11

Additional info

No response

@jsegill
Copy link
Author

jsegill commented Dec 8, 2021

Update: Discovered OP will activate when manually pushing the brake at a complete stop- this mirrors what OP used to do with the brake hold feature. While physically pushing the brake at a complete stop, the resume with another press of the resume button illuminates on the Toyota dash.

Seems like this behavior should be flipped... Activate OP while brake hold is active (car holding brake), not while brake is manually pushed.

image

@pd0wm pd0wm added bug car vehicle-specific labels Jun 2, 2022
@jsegill
Copy link
Author

jsegill commented Jul 2, 2023

May have found a way to fix this car bug with the generous help of @cydia2020
PR soon?

@sshane
Copy link
Contributor

sshane commented Aug 7, 2023

Looked at the history and I don't see any clear reason why it was prevented. We allow it if not openpilot longitudinal control, so perhaps it was a way to avoid faults with openpilot longitudinal since we didn't want to spend the time to verify that this combination of modes worked properly.

We also used to disallow enabling without a lead with brake pressed, so perhaps this can be revisited. Not a priority at the moment though.

@jsegill
Copy link
Author

jsegill commented Aug 7, 2023

Thank you @sshane for researching the issue and the history of why this may be happening. It's been confusing to find the root cause. Much appreciation!

@adeebshihadeh adeebshihadeh transferred this issue from commaai/openpilot Nov 8, 2024
@sshane
Copy link
Contributor

sshane commented Nov 8, 2024

@adeebshihadeh this is an openpilot design decision, do we want to allow enabling with auto hold again? The stock systems usually allow this

@adeebshihadeh
Copy link
Contributor

I don't see why not? You just have to press resume first?

@sshane
Copy link
Contributor

sshane commented Nov 8, 2024

@jsegill can you open a new PR similar to #29057? Let's ensure the press resume to go alert for cruiseState.standstill is also shown

@jsegill
Copy link
Author

jsegill commented Nov 8, 2024

Definitely!

@jsegill
Copy link
Author

jsegill commented Nov 11, 2024

@sshane Can we enable for all vehicles w/ brakeHold? Won't each cars PCM give back a message if it's not supported natively? I won't be able to work on it much until next week...

@sshane
Copy link
Contributor

sshane commented Nov 11, 2024

Yes, just remove the alert that has a noEntry and show the resumeRequired alert instead. Transferred back since all changes need to be made in openpilot

@sshane sshane transferred this issue from commaai/opendbc Nov 11, 2024
@sshane sshane added this to the 0.9.8 milestone Nov 11, 2024
@jsegill
Copy link
Author

jsegill commented Nov 13, 2024

Yes, just remove the alert that has a noEntry and show the resumeRequired alert instead. Transferred back since all changes need to be made in openpilot

Like this? #94e7c240c4dfa49aa70ab8a5ed4a59cf62316dd3 Commit 94e7c24
[] 94e7c24

@sshane
Copy link
Contributor

sshane commented Nov 15, 2024

Yes, exactly

@jsegill
Copy link
Author

jsegill commented Nov 15, 2024

I'll test Sunday and submit a PR if all goes well.

@sshane
Copy link
Contributor

sshane commented Nov 15, 2024

You can open the PR now, we need to test on a few brands here to make sure it all works

@jsegill
Copy link
Author

jsegill commented Nov 15, 2024

Just got it in.

@jsegill
Copy link
Author

jsegill commented Dec 31, 2024

Last PR submitted won't work. Will need further work.

@sshane sshane mentioned this issue Jan 15, 2025
3 tasks
@sshane sshane modified the milestone: 0.9.8 Jan 15, 2025
@sshane sshane closed this as completed Jan 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug car vehicle-specific toyota
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants