How to interf C++progr receiving sp.craft coord over network

The place to discuss creating, porting and modifying Celestia's source code.
Topic author
ovr
Posts: 2
Joined: 22.03.2005
With us: 19 years 7 months

How to interf C++progr receiving sp.craft coord over network

Post #1by ovr » 22.03.2005, 13:56

Being new to Celestia and CELX it is not obvious for me how to get my small C++ application, which is receiving/decoding real time coordinate information and quaternions concerning current positioning + rotation of two satellites to update positions of my two spacecraftmodels sat1.3ds sat2.3ds in Celestia. Please give me some hint on how/where to start.

Avatar
selden
Developer
Posts: 10192
Joined: 04.09.2002
With us: 22 years 2 months
Location: NY, USA

Post #2by selden » 22.03.2005, 15:06

Unfortunately, Celestia does not yet reread its data files while it's running. After your program writes the updated SSC file, you have to stop and then restart Celestia.
Selden

Topic author
ovr
Posts: 2
Joined: 22.03.2005
With us: 19 years 7 months

Post #3by ovr » 22.03.2005, 16:09

Thanks for your fast comment. According to http://celestia.h-schmidt.net/celx-summary-1.1.html under 2.4.5 you can read:".....1.3.2 You can access the x-component directly by using position.x (this works for assignment too: position.x = 1)" , Sounds like a CELX/LUA-script should be able to set the position.x, position.y,position.z for a spacecraft if you can make the CELX-script i call a C++-routine, which is fetching coordinate data from the network. How then to make the CELX-script call a C++-routine....?

Harry
Posts: 559
Joined: 05.09.2003
With us: 21 years 2 months
Location: Germany

Post #4by Harry » 22.03.2005, 22:21

ovr wrote:Sounds like a CELX/LUA-script should be able to set the position.x, position.y,position.z for a spacecraft

No, you can only set the components of the position itself, but this doesn't change the spacecraft.

Harald

JazziFan19
Posts: 2
Joined: 20.05.2005
With us: 19 years 5 months

Post #5by JazziFan19 » 20.05.2005, 21:12

Hi, ovr -

I don't have answers for you, but I'd like to know what you find out. I'm trying to do something very similar. Thanks.
-- Jerry


Return to “Development”