-
Notifications
You must be signed in to change notification settings - Fork 22
Introducing a Load Switch Manager #297
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
Conversation
|
Signed-off-by: Michael Pham <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR introduces a new LoadSwitchManager system to provide a uniform interface for controlling power flow to different satellite components through load switches.
- Implements a generic LoadSwitchManager class with enable, disable, reset, and status checking functionality
- Defines a protocol interface for load switch management to ensure consistent API design
- Includes comprehensive unit tests covering normal operations and error conditions
Reviewed Changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 7 comments.
Show a summary per file
File | Description |
---|---|
circuitpython-workspaces/flight-software/src/pysquared/protos/loadswitch.py |
Defines the LoadSwitchManagerProto protocol interface |
circuitpython-workspaces/flight-software/src/pysquared/hardware/load_switch/manager/loadswitch_manager.py |
Implements the LoadSwitchManager class with power control methods |
circuitpython-workspaces/flight-software/src/pysquared/hardware/load_switch/manager/__init__.py |
Package initialization file for the manager module |
circuitpython-workspaces/flight-software/src/pysquared/hardware/load_switch/__init__.py |
Package initialization file for the load_switch module |
cpython-workspaces/flight-software-unit-tests/src/unit-tests/hardware/load_switch/manager/test_loadswitch_manager.py |
Comprehensive unit tests for the LoadSwitchManager functionality |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
circuitpython-workspaces/flight-software/src/pysquared/protos/loadswitch.py
Outdated
Show resolved
Hide resolved
circuitpython-workspaces/flight-software/src/pysquared/protos/loadswitch.py
Outdated
Show resolved
Hide resolved
circuitpython-workspaces/flight-software/src/pysquared/protos/loadswitch.py
Outdated
Show resolved
Hide resolved
...-workspaces/flight-software/src/pysquared/hardware/load_switch/manager/loadswitch_manager.py
Outdated
Show resolved
Hide resolved
...-workspaces/flight-software/src/pysquared/hardware/load_switch/manager/loadswitch_manager.py
Outdated
Show resolved
Hide resolved
...-workspaces/flight-software/src/pysquared/hardware/load_switch/manager/loadswitch_manager.py
Outdated
Show resolved
Hide resolved
...-workspaces/flight-software/src/pysquared/hardware/load_switch/manager/loadswitch_manager.py
Outdated
Show resolved
Hide resolved
…loadswitch.py Co-authored-by: Copilot <[email protected]>
…pysquared into mike-loadswitch-proto
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
Copilot reviewed 5 out of 5 changed files in this pull request and generated no new comments.
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
…d into mike-loadswitch-proto
…d into mike-loadswitch-proto
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
YAY
Summary
This PR takes out some of the work that was originally in #269. With this new
loadswitch_manager
users will be able to have a uniform interface for interacting with load switches that control the power flowing to different parts of the satellite!How was this tested