-
Notifications
You must be signed in to change notification settings - Fork 6
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 Monte Carlo #351
Comments
Take a look at https://github.com/pathfinder-for-autonomous-navigation/psim/blob/13824dfb94d07a672ce1e97e89e205b815bf1584/MATLAB/environmental_models/helper_functions/eci_ecef_conversions.py if you want an example of converting between ECEF and ECI with astropy and GPS time. The eci ecef stuff in Also, the date on line 35 of Change the initial GPS week number: Line 14 in 13824df
To update const.INIT_DYEAR which is used in the magnetic field model:Line 16 in 13824df
Line 36 in 13824df
And the other parameters used in the rough earth rotation model. Lines 57 to 65 in 13824df
|
@nhz2 @govindchari Is it possible to just run the python script that Nathan linked instead of the Matlab script? The ground server will not be able to easily run MatLab scripts. |
https://docs.astropy.org/en/stable/time/index.html#convert-time-scale |
TODO folder login dump |
We need to report coordinates in J2000 MEME Format
PSim propagates in ECEF without precession terms, so it is slightly inaccurate, but is fine to propagate with for a week
However, we need to reinitialize a few parameters (quat_ecef0_eci and precession rate) with the values from the current day
There is a matlab script in the MATLAB/ folder titled config.m that does this. Just put in the date on line 35 and the parameters are computed in lines 62 and 64.
There is also a PR open that will allow these inputs to be put into the config file of psim
When running the Monte Carlo, we should also reseed the config file
This time reset breaks attitude stuff since the magnetic field and sun vectors are time varying
To fix this, look at lines 44 and 52 in psim/truth/environment.cpp. A delta needs to be added to t to compensate for the time since the PAN epoch
The text was updated successfully, but these errors were encountered: