-
Notifications
You must be signed in to change notification settings - Fork 63
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
Refactor/856 refactor facet srp dynamic effector #865
Refactor/856 refactor facet srp dynamic effector #865
Conversation
96cb6b5
to
efbf0b8
Compare
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.
just small changes. Nice work with the refactor and bug fix.
To give users 1 year to update to using setters and getters, let's leave the two variables public for now, but warn the user about directly setting them being deprecated and will vanish Dec. 2025.
src/simulation/dynamics/facetSRPDynamicEffector/facetSRPDynamicEffector.h
Show resolved
Hide resolved
src/simulation/dynamics/facetSRPDynamicEffector/facetSRPDynamicEffector.cpp
Outdated
Show resolved
Hide resolved
src/simulation/dynamics/facetSRPDynamicEffector/facetSRPDynamicEffector.i
Show resolved
Hide resolved
src/simulation/dynamics/facetSRPDynamicEffector/_UnitTest/test_unitFacetSRPDynamicEffector.py
Outdated
Show resolved
Hide resolved
src/simulation/dynamics/facetSRPDynamicEffector/facetSRPDynamicEffector.rst
Show resolved
Hide resolved
999c710
to
cd82174
Compare
@schaubh This branch is ready for a re-review. I have fixed all of your requested changes. |
cd82174
to
82100a0
Compare
7a3845e
to
45d1fec
Compare
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.
need to rebase on latest develop. This will make the Window CI build work again. Otherwise good to go.
The initial facet attitudes are specified relative to the spacecraft body frame dcm_F0B
These variables will be moved to private module variables in one year. Bsk users are given one year to switch to using the provided setters and getters.
45d1fec
to
7143d6c
Compare
Description
The
facetSRPDynamicEffector
module currently has a bug when mapping the facet normal vectors to the spacecraft body frame. The computed DCM from the facet frame to the body frame must be transposed to obtain the correct transformation. Along with fixing this issue, this PR cleans up the module code, unit test, and documentation.A significant change this PR introduces to the module code is the requirement for the user to specify the initial facet attitudes relative to the spacecraft body frame. These DCMs are added to the
FacetedSRPSpacecraftGeometryData
structure and the vector is calledfacetDcm_F0BList
. The second significant change this PR introduces is frame specification for the facet normal vectors and rotation axes. These vectors contained in theFacetedSRPSpacecraftGeometryData
are renamed tofacetNHat_FList
andfacetRotHat_FList
. As these variables now indicate, these vectors are required to be specified in the facet F frames instead of the spacecraft body frame B.Verification
The unit test for this module is updated to reflect these changes. An additional test is added to verify the SRP torque is correctly calculated.
Documentation
The documentation is updated to reflect these changes.
Future work
N/A