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

Prevent "Brake!" message on OP long disengage #75

Closed
jyoung8607 opened this issue Jan 11, 2022 · 4 comments
Closed

Prevent "Brake!" message on OP long disengage #75

jyoung8607 opened this issue Jan 11, 2022 · 4 comments
Assignees
Labels
enhancement New feature or request

Comments

@jyoung8607
Copy link
Owner

A subset of vehicles with MQB long throw a "Brake!" message and loud beep when disengaging via either gas or brake. As an example, my 2020 Tiguan does this, but my 2018 Golf R doesn't. I'm not yet sure how to fix this correctly. There's a complex interaction between the radar and the instrument cluster, and we're not yet simulating it correctly.

Involved messages/signals for later reference:

  • Kombi_01.KBI_Konsistenz_ACC (not sure if cause or effect)
  • ACC_04.ACC_Texte_braking_guard (a symptom, but filtering it doesn't prevent the problem)
  • I think some signals in ACC_13 are involved; I don't have very clear data on this yet
@jyoung8607 jyoung8607 added the enhancement New feature or request label Jan 11, 2022
@jyoung8607 jyoung8607 self-assigned this Jan 11, 2022
@jyoung8607 jyoung8607 moved this to In Progress in VW MQB Updates Jan 11, 2022
@jyoung8607 jyoung8607 moved this from In Progress to Todo in VW MQB Updates Jan 11, 2022
@Hendrik212
Copy link

I did some further analysis and I'm fairly certain I found the cause this time.

A disengagement event on stock ACC looks as marked by the red box:
2022-01-22 16_59_52-comma ai cabana

On OP long ["TSK_06"]["TSK_Status"] is used as an input signal for ["ACC_02"]["ACC_Status_Anzeige"]. Thus ["ACC_Status_Anzeige"] is briefly set to 5 on disengage which deviates from shown stock behaviour.

I still need to confirm this with an extended test drive. However, I'm able to trigger the Brake! message at standstill by manually sending the value 5 to ["ACC_02"]["ACC_Status_Anzeige"]. That's why I'm quite optimistic we are in for an easy fix.

@jyoung8607
Copy link
Owner Author

Very plausible, nice find! Will try it tomorrow.

@jyoung8607 jyoung8607 pinned this issue Jan 23, 2022
@Hendrik212
Copy link

After driving around for several days, I think it's safe to say the Brake beep can be fixed by changing the line

"ACC_Status_Anzeige": acc_status,
to
"ACC_Status_Anzeige": 2 if acc_status == 5 else acc_status,

A few things I found out during testing:
It was difficult (or even impossible?) to filter this message because we were actually commanding the cluster to display the Brake! message by sending 5. The car was not responsible for this message.

By sending 5 to ["ACC_02"]["ACC_Status_Anzeige"], the ["ACC_04"]["ACC_Texte_braking_guard"] message was also somehow triggered. However, filtering this message seemingly had no effect because it was invisible (the Brake message seems to have a higher priority).

During testing I cycled through all ["ACC_04"]["ACC_Texte_braking_guard"] messages to see if it includes the Brake beep. Here's what it can actually display:
1: text: "front assist deactivated"
2: big red front assist symbol
3: text: "front assist demo mode"
4: text: "front assist not available"

I've seen stock ACC displaying the Brake message in rare cases. It seems to be triggered when the calculated negative acceleration exceeds the lower ACC limit. It's a take over request from ACC which can occur much earlier than a FCW to give the driver additional time to intervene.

On OP-long it should be safe to just set this to 2 if tsk_status is 5 because tsk_status 5 is not an error:

# ACC okay and enabled, currently regulating speed (3) or driver accel override (4) or brake only (5)

@jyoung8607
Copy link
Owner Author

Hey @Hendrik212, wanted to let you know I tried this on our 2020 Tiguan and it worked great. I did end up setting it to 3 rather than 2 to reflect that 5 is indeed a still engaged state, but the principle of the fix worked great. Thanks very much for tracking this down!

Repository owner moved this from Todo to Done in VW MQB Updates Feb 6, 2022
dkiiv pushed a commit to dkiiv/openpilot that referenced this issue Aug 28, 2024
* don't initialize lane change if road edge detected

* add event

* use frog's method

* sync name

* unused

* Only block during preLaneChange

* change it up
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Archived in project
Development

No branches or pull requests

2 participants