Skip to content
This repository was archived by the owner on Jun 13, 2023. It is now read-only.

Conversation

@tmf97
Copy link
Member

@tmf97 tmf97 commented May 7, 2023

Summary

Converts the attitude dynamics implementation to track angular momentum as the state, instead of angular velocity. Moves angular velocity to the derived state. Propagates all changes to existing unittests.
(Angular velocity is a bad state to track because it is coupled with the moment of inertia of the spacecraft, which changes significantly as fuel gets used up throughout the mission. Tracking angular momentum makes state propagation much easier, even if the initial conditions may be a bit confusing)

Testing

  • Existing unittests.

  • Running a sim with D_T=0.1 gives a reasonable output when looking at plot_quat():
    attitude_plot

  • Nothing else 😅

Notes

This will make implementing the ACS actuator model significantly easier when we get around to it.
The math that's implemented here is based off of my MAE 4060 notes, which are at Team Docs > References > Spaceflight course handouts (MAE 4060)

Comments

  • Add an x between the brackets if you commented your code well!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants