tesla_preap: publish enableLongControl on CarState - #6
Closed
daggerhashjack wants to merge 2 commits into
Closed
daggerhashjack wants to merge 2 commits into
daggerhashjack wants to merge 2 commits into
Conversation
Interceptor authority (pedalLongActive) drops on gas override while the FSM long flag stays true. Brake and first-pull drop the FSM flag while cruise stays. Publish enableLongControl so selfdrived can chime on those edges instead of the long-lived cruise session.
Empty CAN defaults doors to OPEN and gear to invalid, so check_can_engage cleared the FSM flag before CarState published it. Drive + closed doors keep the flag so the test can distinguish it from interceptor authority.
daggerhashjack
marked this pull request as ready for review
August 29, 2026 02:24
Author
|
Already covered on nap-dev. Closing. |
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.
Description
Publish the Pre-AP FSM
enableLongControlflag onCarStateso selfdrived can chime on long-control edges instead of interceptor authority or the long-lived cruise session.pedalLongActiveis accepted interceptor authority. Gas override drops that whileenableLongControlstays true. Brake and first-pull dropenableLongControlwhilecruiseEnabledstays. Those two cases are indistinguishable frompedalLongActive+cruiseState.enabledalone (pedal-up handshake looks the same as a lat-only drop).Companion openpilot change binds
pedalCruiseEnabled/pedalCruiseDisabledto this field.Verification
test_enable_long_control_publishes_fsm_flag_not_interceptor_authority(long on, authority off)test_nap_specific_fields_on_carstateNo DAS spoof. No naponsp-dev / Sunny EPAS. No AGNOS / 0.11.1.