Skip to content

refactor: improve code maintainability and readability#36557

Closed
tomwolfe wants to merge 1 commit intocommaai:masterfrom
tomwolfe:master
Closed

refactor: improve code maintainability and readability#36557
tomwolfe wants to merge 1 commit intocommaai:masterfrom
tomwolfe:master

Conversation

@tomwolfe
Copy link
Copy Markdown

@tomwolfe tomwolfe commented Nov 4, 2025

No description provided.

- Refactor constants.py: Organize constants into logical classes with proper documentation
- Refactor PIDController: Use descriptive parameter names and add comprehensive documentation
- Improve long_control_state_trans: Enhance readability of state transition logic
- Update all references to use new constant and parameter names
- Add comprehensive docstrings and type annotations where appropriate

These changes improve code maintainability, readability, and testability while preserving all existing functionality.
Copy link
Copy Markdown
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for contributing to openpilot! In order for us to review your PR as quickly as possible, check the following:

  • Convert your PR to a draft unless it's ready to review
  • Read the contributing docs
  • Before marking as "ready for review", ensure:
    • the goal is clearly stated in the description
    • all the tests are passing
    • the change is something we merge
    • include a route or your device' dongle ID if relevant

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant