Thanks a lot for your reply. What I need is the first case but when I try to 
create a coordinate system with the origin at the default SC of type BodyFixed, 
I get this error:

[cid:image001.png@01D7AE0B.17C308D0]

Christian Ruel
T +1.514.369.5706 x 238


From: Roychowdhury, Debdeep <roychowdh...@campus.tu-berlin.de>
Sent: Thursday, September 16, 2021 5:55 AM
To: Christian Ruel <christian.r...@mayahtt.com>
Cc: gmat-users@lists.sourceforge.net <gmat-users@lists.sourceforge.net> 
<gmat-users@lists.sourceforge.net>
Subject: AW: [Gmat-users] Body fixed coordinate system

Hi Christian,

It is not clear to me if you just want to have the Sun and planet coordinates 
in the SC default coordinate system or if you want to define a new SC 
coordinate system based on the Sun's position (as you mentioned in your last 
question). Both are easy.

For the first one, just create a new coordinate System with the origin at the 
SC and "Type" BodyFixed. Then you can record the Sun's coordinates in this SC 
coordinate system.

For the second case, choose the "Type" as ObjectReferenced and keep the origin 
at the SC. Choose your primary as the SC and the secondary as the Sun. If you 
want the SC coordinate system's X axis to be the Sun vector from the SC, then 
choose your X as "R". You can read more about this in the help document.

Have a look at the coordinate systems and the report files in the script I 
attached with this email.

Regards,
Debdeep Roychowdhury

Gesendet von Mail<https://go.microsoft.com/fwlink/?LinkId=550986> für Windows

Von: Christian Ruel<mailto:christian.r...@mayahtt.com>
Gesendet: Montag, 13. September 2021 20:01
An: gmat-users@lists.sourceforge.net<mailto:gmat-users@lists.sourceforge.net>
Betreff: [Gmat-users] Body fixed coordinate system

Hello,

I am trying to create a coordinate system that would be fixed to the default 
spacecraft (SC)  that would allow to get sun and planet vectors in the SC 
coordinate system (vector origin at the origin of the SC coord system and 
pointing to the sun and planet respectively). When I create such a CS now but 
change the attitude of the SC the SC coordinate system remain unchanged - is 
unaffected by the change in attitude. How to have a general way of defining 
such a coordinate system that would 'follow' the attitude when it is modified? 
More specifically how should the coordinate system be defined if the attitude 
reference body is the sun?

thanks

Christian Ruel



_______________________________________________
GMAT-users mailing list
GMAT-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gmat-users

Reply via email to