Skip to content

Fix thrJointCompensation control torque sign convention#1310

Open
Will-Schwend wants to merge 4 commits intodevelopfrom
bug/thrJointCompensation-sign-error
Open

Fix thrJointCompensation control torque sign convention#1310
Will-Schwend wants to merge 4 commits intodevelopfrom
bug/thrJointCompensation-sign-error

Conversation

@Will-Schwend
Copy link
Contributor

@Will-Schwend Will-Schwend commented Mar 6, 2026

  • Review: By commit
  • Merge strategy: Merge (no squash)

Description

This PR fixes a sign-convention error in the thrJointCompensation module when computing hinge compensation torques.

The control-law term was corrected from:
uH = -(Mthb * baseAccel) - jointBias + tauThr
to:
uH = (Mthb * baseAccel) - jointBias - tauThr

Verification

Updated the test_thrJointCompensation.py unit test with the new sign corrections for the control law

Documentation

  • Updated:
    bskKnownIssues.rst
    to note that thrJointCompensation had an incorrect compensation-torque sign convention and that it is fixed in the current version.

  • Added
    1310-thrJointCompensation-control-sign
    to bskReleaseNotesSnippets detailing the changes made to the module

Future work

N/A

@Will-Schwend Will-Schwend requested a review from a team as a code owner March 6, 2026 17:10
@Will-Schwend Will-Schwend marked this pull request as draft March 6, 2026 17:10
@Will-Schwend Will-Schwend force-pushed the bug/thrJointCompensation-sign-error branch from 98047ac to 840d436 Compare March 6, 2026 17:13
@Will-Schwend Will-Schwend self-assigned this Mar 6, 2026
@Will-Schwend Will-Schwend added the bug Something isn't working label Mar 6, 2026
@Will-Schwend Will-Schwend moved this to 👀 In review in Basilisk Mar 6, 2026
@Will-Schwend Will-Schwend marked this pull request as ready for review March 6, 2026 17:15
@Will-Schwend
Copy link
Contributor Author

@codex review

@chatgpt-codex-connector
Copy link

Codex Review: Didn't find any major issues. Bravo.

ℹ️ 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".

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: 👀 In review

Development

Successfully merging this pull request may close these issues.

1 participant