Skip to content
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

[nasa/nos3#181] - Update submodule for new inertial attitude control … #471

Merged
merged 3 commits into from
Jan 27, 2025

Conversation

msuder
Copy link
Contributor

@msuder msuder commented Jan 16, 2025

…mode.

Depends on submodule pull request nasa-itc/generic_adcs#9 .

Closes #181.

@msuder msuder requested review from jlucas9 and zlynch2 January 16, 2025 14:28
@msuder msuder self-assigned this Jan 16, 2025
@msuder
Copy link
Contributor Author

msuder commented Jan 16, 2025

How to test:

Launch NOS3 as normal using COSMOS as the GSW.
GENERIC_STAR_TRACKER GENERIC_STAR_TRACKER_ENABLE_CC
GENERIC_ADCS GENERIC_ADCS_INERTIAL_QUATERNION_CC with GNC_INER_QUAT1 0.0, GNC_INER_QUAT2 0.0, GNC_INER_QUAT3 0.0, GNC_INER_QUAT4 1.0
GENERIC_ADCS GENERIC_ADCS_SET_MODE_CC with GNC_MODE INERTIAL_MODE

Watch telemetry page
GENERIC_ADCS GENERIC_ADCS_AC

Look at telemetry point INERTIAL_QUAT_ERR_3. It should gradually move towards 0.99999. When it does, the inertial attitude matches the commanded inertial attitude. You can also look at the 42 Cam window; turn on the N and B axes and see that b1 aligns with n1, b2 aligns with n2, b3 aligns with n3.

Note that the star tracker must be returning valid data for this to work. To see if it is, look at telemetry point
GENERIC_ADCS GENERIC_ADCS_AD ST_VALID.

Copy link
Contributor

@jlucas9 jlucas9 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Standard boot with COSMOS GSW.
cmd("GENERIC_STAR_TRACKER GENERIC_STAR_TRACKER_ENABLE_CC")

Successfully sun pointed by default:
image

cmd("GENERIC_ADCS GENERIC_ADCS_INERTIAL_QUATERNION_CC with GNC_INER_QUAT1 0.0, GNC_INER_QUAT2 0.0, GNC_INER_QUAT3 0.0, GNC_INER_QUAT4 1.0")
cmd("GENERIC_ADCS GENERIC_ADCS_SET_MODE_CC with GNC_MODE INERTIAL_MODE")

Confirmed telemetry in inertial mode (maintained for awhile too):
image

@jlucas9 jlucas9 requested a review from dacarter22 January 17, 2025 01:36
Copy link

@dacarter22 dacarter22 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

quarterion approaching 0 999999 repeating
Intertial_quart_err_3 approaches 0.9999999 repeating

@zlynch2
Copy link

zlynch2 commented Jan 21, 2025

Confirmed we were in adcs mode 3, also confirmed the Qerror approaches 1. Also confirmed the axis match as described. Approving.
image

@jlucas9 jlucas9 merged commit 27cf0aa into dev Jan 27, 2025
2 of 3 checks passed
@jlucas9 jlucas9 deleted the 181-generic-adcs-3-axis branch January 27, 2025 13:38
zlynch2 added a commit to nasa-itc/fprime-nos3 that referenced this pull request Jan 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants