fix: fix starting lower bound when finding precise access AOS#648
fix: fix starting lower bound when finding precise access AOS#648alex-liang3 merged 2 commits intomainfrom
Conversation
|
No actionable comments were generated in the recent review. 🎉 📝 WalkthroughWalkthroughReworks precise-crossing interval boundary handling: computes an interval-previous-step instant and sets the previous lower-bound as either that step (for the first interval) or the max of that step and the previous interval’s end plus one step. Adds tests validating coarse-search-missed accesses don't affect precise crossings. Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 3 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
🧪 Generate unit tests (beta)
Tip Issue Planner is now in beta. Read the docs and try it out! Share your feedback on Discord. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Fix all issues with AI agents
In `@test/OpenSpaceToolkit/Astrodynamics/Access/Generator.test.cpp`:
- Around line 1247-1249: Remove the stray semicolon after the Velocity variable
declaration in Generator.test.cpp: the line ending with
"Velocity::MetersPerSecond({0.0, 8e3, 0.0}, Frame::ITRF()).inFrame(position,
Frame::GCRF(), orbitEpoch);" contains an extra ";" on the following line —
delete that extra semicolon so the declaration for velocity is clean (refer to
the Velocity::MetersPerSecond(...).inFrame(...) expression).
5cd2bf1 to
7752b49
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #648 +/- ##
==========================================
+ Coverage 91.94% 91.95% +0.01%
==========================================
Files 114 114
Lines 11118 11120 +2
==========================================
+ Hits 10222 10225 +3
+ Misses 896 895 -1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
apaletta3
left a comment
There was a problem hiding this comment.
Great stuff! Left a few small comments for clarity
Fixes a bug introduced by #583 where, when finding the precise AOS of an access, an earlier access (not found by the coarse search) could be found, leading to the resulting access being more than 1 orbit long.
Summary by CodeRabbit
Bug Fixes
Tests