Add eclipse illumination support to facetSRPDynamicEffector#1336
Add eclipse illumination support to facetSRPDynamicEffector#1336themouli wants to merge 3 commits intoAVSLab:developfrom
Conversation
|
@codex, do a fun review of this PR using AGENTS.md |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 4b4f91e446
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
src/simulation/dynamics/facetSRPDynamicEffector/facetSRPDynamicEffector.cpp
Outdated
Show resolved
Hide resolved
src/simulation/dynamics/facetSRPDynamicEffector/facetSRPDynamicEffector.rst
Show resolved
Hide resolved
schaubh
left a comment
There was a problem hiding this comment.
Need to add info to release notes. We now do this by adding a small release notes RST snippet to docs/source/Support/bskReleaseNotesSnippets. For example, this file could contain
- added support for eclipse illumination factor to :ref:`facetSRPDynamicEffector`
src/simulation/dynamics/facetSRPDynamicEffector/facetSRPDynamicEffector.cpp
Outdated
Show resolved
Hide resolved
src/simulation/dynamics/facetSRPDynamicEffector/facetSRPDynamicEffector.rst
Outdated
Show resolved
Hide resolved
src/simulation/dynamics/facetSRPDynamicEffector/facetSRPDynamicEffector.cpp
Show resolved
Hide resolved
src/simulation/dynamics/facetSRPDynamicEffector/facetSRPDynamicEffector.cpp
Show resolved
Hide resolved
src/simulation/dynamics/facetSRPDynamicEffector/facetSRPDynamicEffector.cpp
Outdated
Show resolved
Hide resolved
src/simulation/dynamics/facetSRPDynamicEffector/facetSRPDynamicEffector.h
Outdated
Show resolved
Hide resolved
src/simulation/dynamics/facetSRPDynamicEffector/facetSRPDynamicEffector.rst
Outdated
Show resolved
Hide resolved
src/simulation/dynamics/facetSRPDynamicEffector/_UnitTest/test_unitFacetSRPDynamicEffector.py
Show resolved
Hide resolved
src/simulation/dynamics/facetSRPDynamicEffector/_UnitTest/test_unitFacetSRPDynamicEffector.py
Outdated
Show resolved
Hide resolved
src/simulation/dynamics/facetSRPDynamicEffector/_UnitTest/test_unitFacetSRPDynamicEffector.py
Show resolved
Hide resolved
|
Also, please be sure to rebase, not merge, this branch on the latest code in |
53d912a to
f58d2ef
Compare
|
Address all the comments.
Ready for re-review. Thanks for thorough feedback @schaubh! |
f58d2ef to
0eea2a5
Compare
|
Cleaned the commit history |
schaubh
left a comment
There was a problem hiding this comment.
Just minor renaming. I caught more instances of "shadow factor". Should be a quick fix. I can then close this after these changes.
src/simulation/dynamics/facetSRPDynamicEffector/_UnitTest/test_unitFacetSRPDynamicEffector.py
Outdated
Show resolved
Hide resolved
src/simulation/dynamics/facetSRPDynamicEffector/_UnitTest/test_unitFacetSRPDynamicEffector.py
Outdated
Show resolved
Hide resolved
src/simulation/dynamics/facetSRPDynamicEffector/_UnitTest/test_unitFacetSRPDynamicEffector.py
Outdated
Show resolved
Hide resolved
src/simulation/dynamics/facetSRPDynamicEffector/_UnitTest/test_unitFacetSRPDynamicEffector.py
Outdated
Show resolved
Hide resolved
src/simulation/dynamics/facetSRPDynamicEffector/_UnitTest/test_unitFacetSRPDynamicEffector.py
Outdated
Show resolved
Hide resolved
src/simulation/dynamics/facetSRPDynamicEffector/_UnitTest/test_unitFacetSRPDynamicEffector.py
Outdated
Show resolved
Hide resolved
src/simulation/dynamics/facetSRPDynamicEffector/_UnitTest/test_unitFacetSRPDynamicEffector.py
Outdated
Show resolved
Hide resolved
src/simulation/dynamics/facetSRPDynamicEffector/_UnitTest/test_unitFacetSRPDynamicEffector.py
Outdated
Show resolved
Hide resolved
0eea2a5 to
8b97e09
Compare
|
I missed it. Updated them. Thank you! |
Description
Added an optional sunEclipseInMsg input to FacetSRPDynamicEffector so that eclipse shadow conditions are accounted for in the SRP force and torque calculation. When connected, the computed SRP force and torque are scaled by the shadow factor from the EclipseMsgPayload (0.0 = full shadow, 1.0 = full sunlight). When not connected, behavior is unchanged (defaults to full sunlight).
Verification
Updated the existing unit test with a new eclipseShadowFactor parametrization that creates and subscribes an EclipseMsg and scales the Python truth values accordingly.
Documentation
Updated facetSRPDynamicEffector.rst: