Cubic Interpolation for Sampled Orbits...

The place to discuss creating, porting and modifying Celestia's source code.
Topic author
Kendrix
Posts: 159
Joined: 02.06.2002
With us: 22 years 5 months
Location: near Paris, France
Contact:

Cubic Interpolation for Sampled Orbits...

Post #1by Kendrix » 22.01.2003, 21:49

Chris, I have updated my code from the CVS and saw that you have added the Cubic interpolation...

I have tried it but it doesn't seem to work !

For example for Galileo instead of a straight line I have a sort of Cycloid !

The probe rotate around a virtual vertical axis with a radius of ~500000 km

normal :
_____________________>

cubic :

_ __ __>
X X
| | | |
\/ \/

chris
Site Admin
Posts: 4211
Joined: 28.01.2002
With us: 22 years 9 months
Location: Seattle, Washington, USA

Cubic Interpolation for Sampled Orbits...

Post #2by chris » 22.01.2003, 21:51

Kendrix wrote:Chris, I have updated my code from the CVS and saw that you have added the Cubic interpolation...

I have tried it but it doesn't seem to work !

For example for Galileo instead of a straight line I have a sort of Cycloid !

The probe rotate around a virtual vertical axis with a radius of ~500000 km

normal :
_____________________>

cubic :

_ __ __>
X X
| | | |
\/ \/

When did you update? There was a bug in the original code that I fixed with a subsequent checkin. Also, it's disabled by default; my plan is to modify the .xyz format to allow metadata specifying the interpolation type and precision of the data.

--Chris

Topic author
Kendrix
Posts: 159
Joined: 02.06.2002
With us: 22 years 5 months
Location: near Paris, France
Contact:

Post #3by Kendrix » 22.01.2003, 21:53

I updated 15 min ago !

And I have modified the constructor to have cubic by default...

chris
Site Admin
Posts: 4211
Joined: 28.01.2002
With us: 22 years 9 months
Location: Seattle, Washington, USA

Post #4by chris » 22.01.2003, 22:07

I used Galileo and Cassini to test the code, and they seemed to move smoothly. Can you give me a specific date/time where you see Galileo behaving weirdly with cubic interpolation on?

--Chris

Topic author
Kendrix
Posts: 159
Joined: 02.06.2002
With us: 22 years 5 months
Location: near Paris, France
Contact:

Post #5by Kendrix » 22.01.2003, 22:12

Ok for example with Galileo :

on the 6 Nov 2002 if you set the timerate to 1000x you will clearly see it !!!

If you are away of the planet (5,000,000 km) the bug seems to disapear !

chris
Site Admin
Posts: 4211
Joined: 28.01.2002
With us: 22 years 9 months
Location: Seattle, Washington, USA

Post #6by chris » 24.01.2003, 09:45

There was indeed a bug . . . I checked in a fix for it and made cubic interpolation the default (though I may switch it back to linear and require cubic interpolation to be specified in the .xyz file.)

--Chris

Topic author
Kendrix
Posts: 159
Joined: 02.06.2002
With us: 22 years 5 months
Location: near Paris, France
Contact:

Post #7by Kendrix » 24.01.2003, 17:06

I'll try that tonight...

Thanks !


Return to “Development”