-
Notifications
You must be signed in to change notification settings - Fork 83
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
Proximity operations simulation #123
Comments
Hi Johnny, Take a look at Docs/Flight Regimes.pdf. Also, there are a few examples of prox ops in the Demo. Look at SC_BBM, SC_Moai, SC_ISS, SC_Shuttle, SC_ThrDemo, and all three SC_Cubesats. Select "Prox Ops" from the "Show" menu in the "42 Cam" window to see some coordinate grids. The brownish curve is the natural EH motion projected forward and backward in time. Yes, CW = Euler-Hill. EH might indeed be broken. I recall fiddling with orbit stuff several months ago at someone's request, and may not have fully tidied up after. You can help diagnose by describing what you did, what you expected to see, and what you actually saw. Regards, |
Hi Eric, Below there is a .zip folder containing the main input files that I'm using. I took the input files inside the Demo folder as the main reference and I'm using:
I've done some tests, adding to the report files both PosEH.42, VelEH.42 and PosF.42, VelF.42. Their profiles are comparable. Here I attach the results considering a first scenario where no perturbation is used (in Inp_Sim.txt all the flags are FALSE) and a second one where I activated the Gravity Perturbation forces with a 2,2 degree for the gravity model. In both cases, the results are pretty strange and are not comparable with the standard CW equations (I've done the same tests by running a script that retrieves the CW positions in time). As I was saying, the problems may be in the simulation scenario. I tried to replicate what I saw in the Demo folder but I may have lost something. Thanks |
Hi Johnny, Your setup looks fine. Let's concentrate on the disturbance-free sim case first. I duplicated your setup, and I get the same results you plot above. I have a hunch to pursue, but before I dive in any deeper, please elaborate on "pretty strange" and "not comparable with standard CW equations". What, precisely, are you expecting? Regards, |
Hi Johnny, Yes, my L frame is +Z to nadir, +Y opposite the orbit normal, and +X completing the right-handed triad. So your other source and 42 agree. I still have a nagging question about setting up initial conditions, Encke, and my numerical integrator, but that's more of a philosophical issue, if the results you show are of adequate accuracy for your purposes. Moving on to adding geopotential harmonics. I agree that the amount of growth is startling, but what's your basis for concluding that it's wrong? Here's an experiment to try:
My source for the secular drift due to J2 is Markley and Crassidis, "Fundamentals of Spacecraft Attitude Determination and Control", Appendix C. I'm sure there are other references out there as well. As a sanity check, you might look at the geopotential terms, and work out how much "extra" gravitational pull J2 exerts. What would that do to the mean motion and semi-major axis of an orbit that was initialized assuming only Keplerian motion? If you browse other issues in this repo, you'll find cases of 42 not agreeing with GMAT (over long time scales, especially). So I'm not saying that 42 is as accurate as it can be with regard to orbit propagation; there is work to do (which I'll get around to someday, maybe). It's your call whether or not it meets your needs as it stands. If not, I recommend GMAT for hifi orbit propagation with gravitational perturbations. You can use 42 to use that as a reference orbit, and put Encke on top of that to handle whatever perturbations GMAT can't handle gracefully. Regards, |
Hi Eric,
thank you very much for all your efforts in developing and maintaining this repo. I find it really useful.
I've some doubts on how to properly set up a simulation with two spacecrafts - a chaser and a target - that are in a near-range proximity. I would like to start from a simple scenario where the relative motion is a free motion simply described through CW equations (EULER-HILL propagation mode in 42 I assume) and then add the different perturbations.
To do so, I thought that a good way was to use the formation flying options. As of now, I've created the followings:
I added to the report.c two output files (PosEH.42 and VelEH.42) to track the position of the chaser wrt the target (that is also the origin of F). However, the output files do not seem reasonable. Am I doing something wrong?
I know that the question is not an issue but more of a help request, but I really don't know how to setup a correct proximity operations scenario and I didn't find similar simulations in the documentation or in the Demo folder.
Thanks
The text was updated successfully, but these errors were encountered: