Skip to content

Conversation

Mikefly123
Copy link
Member

@Mikefly123 Mikefly123 commented Aug 4, 2025

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

  • Added new unit tests (Vibe Coded!)
  • Ran code on hardware (screenshots are helpful)
  • Other (Please describe)

@Mikefly123 Mikefly123 self-assigned this Aug 4, 2025
@Mikefly123 Mikefly123 added the enhancement New feature or request label Aug 4, 2025
Copy link

sonarqubecloud bot commented Aug 4, 2025

Quality Gate Failed Quality Gate failed

Failed conditions
0.0% Coverage on New Code (required ≥ 80%)

See analysis details on SonarQube Cloud

@Mikefly123 Mikefly123 marked this pull request as ready for review September 30, 2025 17:57
@Mikefly123 Mikefly123 added the Vibe Coded This was written mostly by AI with human oversight label Sep 30, 2025
Copy link
Contributor

@Copilot Copilot AI left a 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.

@Mikefly123 Mikefly123 requested a review from Copilot October 1, 2025 00:18
Copy link
Contributor

@Copilot Copilot AI left a 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.

Copy link

sonarqubecloud bot commented Oct 2, 2025

@ineskhou
Copy link
Contributor

ineskhou commented Oct 2, 2025

image

Copy link
Contributor

@ineskhou ineskhou left a comment

Choose a reason for hiding this comment

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

YAY

@ineskhou ineskhou merged commit 38dbf81 into main Oct 2, 2025
4 checks passed
@ineskhou ineskhou deleted the mike-loadswitch-proto branch October 2, 2025 00:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Vibe Coded This was written mostly by AI with human oversight
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants