Coordinates of Libration Point?

Spacecraft, Thruster, Tank, Propagator, CoordinateSystem, etc.

Coordinates of Libration Point?

Postby drdanguitr » Thu Apr 04, 2013 3:37 am

I have an earth/moon libration point created, no problem there. But I'm trying to put the coordinates of the libration point into a report file, and I can't find a way to reference them. I tried to use the Report GUI, but it doesn't seem to have Solar System objects available.
drdanguitr
 
Posts: 11
Joined: Thu Mar 28, 2013 8:04 pm

Re: Coordinates of Libration Point?

Postby shughes » Tue Apr 09, 2013 3:21 pm

here is a workaround

Code: Select all
%  Create spacecraft and put it at the libration point
Create Spacecraft libSat
libSat.CoordinateSystem = libCS
libSat.X = 0;
libSat.Y = 0;
libSat.Z = 0;
libSat.VX = 0;
libSat.VY = 0;
libSat.VZ = 0;

%  Create libration point centered coordinate system
Create LibrationPoint LibPointL2
Create CoordinateSystem libCS
libCS.Origin = LibPointL2

Create ReportFile rf

BeginMissionSequence

Report rf libSat.EarthMJ2000Eq.X libSat.EarthMJ2000Eq.Y  libSat.EarthMJ2000Eq.Z libSat.EarthMJ2000Eq.VX libSat.EarthMJ2000Eq.VY  libSat.EarthMJ2000Eq.VZ

shughes
 
Posts: 443
Joined: Mon Jun 09, 2008 6:27 pm

Re: Coordinates of Libration Point?

Postby shughes » Tue Apr 09, 2013 3:24 pm

shughes
 
Posts: 443
Joined: Mon Jun 09, 2008 6:27 pm

Re: Coordinates of Libration Point?

Postby drdanguitr » Tue Apr 09, 2013 5:40 pm

I tried the workaround, creating spacecraft ELL1Beacon at the Earth Luna libration point L1. Still testing it, but it looks like it did exactly what I wanted! Thanks! That looks like a general-purpose workaround I can probably use for the Sun or any planets as well.
drdanguitr
 
Posts: 11
Joined: Thu Mar 28, 2013 8:04 pm

Re: Coordinates of Libration Point?

Postby shughes » Tue Apr 09, 2013 6:30 pm

Glad it helped!
shughes
 
Posts: 443
Joined: Mon Jun 09, 2008 6:27 pm


Return to GMAT Resources

Who is online

Users browsing this forum: No registered users and 1 guest

cron