Skip to content

remove CarState.brake refs#37857

Open
belm0 wants to merge 2 commits intocommaai:masterfrom
belm0:remove_cs_brake_refs
Open

remove CarState.brake refs#37857
belm0 wants to merge 2 commits intocommaai:masterfrom
belm0:remove_cs_brake_refs

Conversation

@belm0
Copy link
Copy Markdown
Contributor

@belm0 belm0 commented Apr 19, 2026

Intending to deprecate CarState.brake since it's set incorrectly by most car implementations and (essentially) unused in openpilot. Everything should be using CarState.brakePressed. See commaai/opendbc#3338.

The brake references removed here are as follows:

  • 4 year old workaround for pedal intercept for honda in test_models.py
  • one use in gm car, migrated to brakePressed

Intending to deprecate this field since it's set incorrectly by
most car implementations, and (essentially) unused in openpilot.
Everything should be using CarState.brakePressed.
See commaai/opendbc#3338.
@github-actions github-actions Bot added the car vehicle-specific label Apr 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

car vehicle-specific

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants