Skip to content

Convert sunSafePoint to adapter #427

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

Open
wants to merge 13 commits into
base: develop
Choose a base branch
from

Conversation

leahkiner
Copy link
Collaborator

@leahkiner leahkiner commented May 14, 2025

Description

To enable easy relocation of fsw algorithms use the adapter pattern for sunSafePoint.
This allows for relocation of fsw algorithms and then inclusion of bsk modules in any language with a c ffi/abi.

The first commit renames the C module (currently named sunSafePoint) to sunSafePoint_C and the C++ module (currently named sunSafePointCpp) to sunSafePoint. The second commit replaces the unit vector check for the sHatBdyCmd vector. Removing the check from the reset method, the provided unit vector is instead normalized to a unit vector in the setter. An assert statement checks that the given vector is not zero. The third commit converts the module to the adapter pattern.

Verification

The unit test is checked to pass with these changes.

Documentation

N/A

Future work

N/A

@leahkiner leahkiner self-assigned this May 14, 2025
@leahkiner leahkiner added enhancement New feature or request refactor labels May 14, 2025
@leahkiner leahkiner moved this to In Progress in LASP Basilisk May 14, 2025
@leahkiner leahkiner linked an issue May 14, 2025 that may be closed by this pull request
@leahkiner leahkiner force-pushed the feature/426_sun_safe_point_adapter branch from 23bfccf to 63ddd53 Compare May 19, 2025 17:25
@leahkiner leahkiner force-pushed the feature/426_sun_safe_point_adapter branch 3 times, most recently from 330c8c4 to d199c16 Compare May 20, 2025 16:59
@leahkiner leahkiner force-pushed the feature/426_sun_safe_point_adapter branch from d199c16 to 3ef6bc0 Compare May 20, 2025 18:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request refactor
Projects
Status: In Progress
Development

Successfully merging this pull request may close these issues.

Convert sunSafePoint to adapter
1 participant