Question re: SampledOrientation and .q file

Have a question about using Celestia? Check here first for FAQs and helpful advice.
Forum rules
Please help to make this forum more useful by checking the FAQs before posting! Keep it clean, keep it civil, keep it truthful, stay on topic, be responsible, share your knowledge.
Topic author
Posts: 63
Joined: 17.07.2008
With us: 11 years 11 months

Question re: SampledOrientation and .q file

Post #1by BrianJ » 06.12.2009, 23:53

I'm having trouble using the SampledOrientation parameter together with a .q file.

I made a "testvessel" spacecraft (in Geosynchronous orbit) that uses the following .ssc file:

Code: Select all

"Testvessel" "Sol/Earth"

   Class          "spacecraft"
   Radius          0.0075
   Beginning         2453635.8061092
   Ending         2453636.9029765
   OrbitFrame          { EclipticJ2000 { Center "Sol/Earth"  } }
   SampledOrbit      "testvessel.xyzv"
   BodyFrame       { EclipticJ2000{ Center "Sol/Earth" } }
   SampledOrientation   "testvessel.q"
   Albedo       0.10

The .q file "testvessel.q" is as follows:

Code: Select all

2453635.8061092 1 0 0 0
2453636.9029765 1 0 0 0

I thought that the quaternions used (1 0 0 0) implied no rotation, and thus the spacecraft body axes would be aligned with the frame (Ecliptic) axes, but this is not the case.

Using the above .ssc and .q gives the following transformation:
Ecliptic X = Body -X
Ecliptic Y = Body Z
Ecliptic Z = Body Y

Here's a link to a screen shot showing the Ecliptic grid and spacecraft Frame axes:

...and here's one showing Ecliptic grid and spacecraft Body axes:

What should my BodyFrame{} parameter and .q file quaternions be in order to set the spacecraft body axes to the same orientation as the frame(ecliptic) axes? (or is this a bug?)

I'm using Celestia 1.6.0 and Windows XP.

Many thanks,

Return to “Help Central”

Who is online