Skip to content

Fix out-of-bounds rvec indices in atmosphericDrag error message - #1620

Merged
schaubh merged 1 commit into
AVSLab:developfrom
carlo98:hotfix/atmosphericDrag_error_msg
Oct 17, 2026
Merged

schaubh merged 1 commit into
AVSLab:developfrom
carlo98:hotfix/atmosphericDrag_error_msg

Conversation

@carlo98

@carlo98 carlo98 commented Oct 16, 2026

Copy link
Copy Markdown
Contributor
  • Tickets addressed: nd
  • Review: By file
  • Merge strategy: Squash and merge

Description

When atmosphericDrag() in src/architecture/utilities/orbitalMotion.c received a position with a non-positive altitude, its MSG_ERROR message printed rvec[1], rvec[2], rvec[3]. That showed the y and z components followed by rvec[3], one element past the end of the 3-element position vector. The printed position was wrong, and the read was out of bounds.

Verification

No automated test was added. The existing Python tests in src/tests/test_orbitalMotion.py cover the pure-Python orbitalMotion.py, and the C atmosphericDrag() is not exposed through SWIG.

Documentation

  • Added the release-note snippet.
  • Added an entry to docs/source/Support/bskKnownIssues.rst.

Future work

None.

carlo98 added a commit to carlo98/basilisk that referenced this pull request Oct 16, 2026
@carlo98
carlo98 force-pushed the hotfix/atmosphericDrag_error_msg branch from 9bb32f5 to c7e679c Compare October 16, 2026 15:19
@carlo98
carlo98 marked this pull request as ready for review October 16, 2026 15:20
@carlo98
carlo98 requested a review from a team as a code owner October 16, 2026 15:20
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 16, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ⚠️ Failed 2026-10-16T15:21:42.602072Z c7e679c Draft marked ready
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@schaubh schaubh self-assigned this Oct 17, 2026
@schaubh schaubh added the bug Something isn't working label Oct 17, 2026
@schaubh schaubh added this to Basilisk Oct 17, 2026
@schaubh schaubh moved this to 👀 In review in Basilisk Oct 17, 2026
@schaubh
schaubh force-pushed the hotfix/atmosphericDrag_error_msg branch from c7e679c to ea5a446 Compare October 17, 2026 03:09
@schaubh
schaubh merged commit f42bc2e into AVSLab:develop Oct 17, 2026
7 checks passed
@github-project-automation github-project-automation Bot moved this from 👀 In review to ✅ Done in Basilisk Oct 17, 2026
@carlo98
carlo98 deleted the hotfix/atmosphericDrag_error_msg branch October 17, 2026 14:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

Status: ✅ Done

Development

Successfully merging this pull request may close these issues.

2 participants