-
Notifications
You must be signed in to change notification settings - Fork 9
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
Magnetic disturbances #202
Conversation
…now in my own fork instead of Moana's)
…erence frame transformation function
…unction to form this transformation matrix)
…of floats, outputs: numpy arrays (needs to be reviewed in implementation)
…l and magnetic) on actor. started with set_attitude_model and attitude model class as well.
…access the I-matrix)
deleted redundant function (which I added myself)
pointing vector function
# Conflicts: # paseos/attitude/attitude_model.py # test_attitude_code/test_attitude_plotting.py
# Conflicts: # paseos/attitude/attitude_model.py # paseos/tests/attitude_test.py
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Make sure to merge with the final student branch.
paseos/attitude/attitude_model.py
Outdated
u = np.array(self._actor.get_position(self._actor.local_time)) | ||
return -u / np.linalg.norm(u) | ||
|
||
def _earth_magnetic_dipole_moment(self): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a feature of the center body. I would move it there
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That is true, I put it in central_body. I put a todo to implement other central bodies instead of Earth, I can remove that todo and add an issue later (or don't do any). Is this okay?
paseos/tests/attitude_test.py
Outdated
# get Earth B vector at specific timestep | ||
|
||
# Earth magnetic dipole moment: | ||
m_earth = actor._attitude_model.earth_magnetic_dipole_moment() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would not make it a property of the attitude model but of the central body, as mentioned before.
@Mr-Medina please notice that your test on the magnetic disturbances is failing me. It passes only if I use at least |
Description
Summary of changes
Resolved Issues
How Has This Been Tested?
Place two actors in GEO orbit in the magnetic dipole moment vector plane of the Earth, one magnetic, one non-magnetic. Alligning body pointing vectors (and for the magnetic actor: its magnetic dipole) with the local field vector of the Earth. Run simulation and check if magnetic actor follows field lines, and non-magnetic actor doesn't change attitude.
Related Pull Requests
Complements the general attitude model.