Ford: tighten hands-free UI gating to strict lateral control#108
Draft
adgower wants to merge 3 commits intoBluePilotDev:bp-6.0.1-betafrom
Draft
Ford: tighten hands-free UI gating to strict lateral control#108adgower wants to merge 3 commits intoBluePilotDev:bp-6.0.1-betafrom
adgower wants to merge 3 commits intoBluePilotDev:bp-6.0.1-betafrom
Conversation
Keep the existing `send_hands_free_cluster_msg` param chain, but only forward a derived runtime flag when lateral is actually in control. In Ford `carcontroller.py`, require `CC.latActive` and, when MADS is available, require `CC_SP.mads.state == MADSState.enabled` before showing the hands-free cluster UI. Pass that stricter flag through the DM helper path and ACC UI path without changing `create_acc_ui_msg()` behavior or any public interfaces. Non-MADS behavior is unchanged.
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.
Tighten Ford hands-free cluster UI gating so the hands-free icon only appears when lateral is actually in control.
Before this change, the existing
send_hands_free_cluster_msgtoggle could flow through the Ford UI path too loosely. This patch keeps the same param chain and downstream behavior, but derives a stricter runtime flag inopendbc_repo/opendbc/car/ford/carcontroller.pybefore passing it on.New gating:
CC.latActiveCC_SP.mads.state == MADSState.enabledVerification
mads.state == enabledwithCC.latActive=Truestill allows hands-free UImads.state == enabledstill allows hands-free UIpaused,overriding, andsoftDisablingnow suppress hands-free UI