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

camerad: refactor camera_open() into separate functions for clarity #33056

Merged
merged 1 commit into from
Jul 24, 2024

Conversation

deanlee
Copy link
Contributor

@deanlee deanlee commented Jul 24, 2024

The lengthy camera_open() method was refactored into logical parts, each handling a specific aspect of the camera setup. This change improves clarity and makes the code easier to work with.

Following this PR, we can further refine these functions to improve the robustness and readability of the camera initialization code, as well as clarify the logging.

Copy link
Contributor

github-actions bot commented Jul 24, 2024

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

@deanlee deanlee changed the title camerad: refactor camera_open() Method by splitting into multiple methods for clarity camerad: refactor camera_open() by splitting into multiple methods for clarity Jul 24, 2024
@deanlee deanlee changed the title camerad: refactor camera_open() by splitting into multiple methods for clarity camerad: refactor camera_open() method into separate functions for clarity Jul 24, 2024
@deanlee deanlee changed the title camerad: refactor camera_open() method into separate functions for clarity camerad: refactor camera_open() into separate functions for clarity Jul 24, 2024
@adeebshihadeh
Copy link
Contributor

trigger-jenkins

@adeebshihadeh adeebshihadeh merged commit 0fa6745 into commaai:master Jul 24, 2024
25 checks passed
@deanlee deanlee deleted the camerad_split_open branch July 24, 2024 17:09
Edison-CBS pushed a commit to Edison-CBS/openpilot that referenced this pull request Sep 15, 2024
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.

2 participants