Eagle Lander code

The place to discuss creating, porting and modifying Celestia's source code.
Topic author
Darkmiss
Posts: 1059
Joined: 20.08.2002
With us: 22 years 3 months
Location: London, England

Eagle Lander code

Post #1by Darkmiss » 28.01.2003, 14:17

Can anyone modify this code for me
so that my Eagle luna lander doesn't move along the moons surface
so it looks as though it has landed

"The Eagle Has Landed" "Sol/Earth/Moon"
{
Mesh "Eagle-Landed.3DS"
Radius 0.010
Beginning "1969 7 16 09:32" # Launch
Ending "1969 7 24 12:55" # Return

EllipticalOrbit {
Period 0.9973092
SemiMajorAxis 1738.579946736
Eccentricity 2.401E-4
Inclination 5.1256
AscendingNode 71.4915
ArgOfPericenter 88.1162
MeanAnomaly 55.1046
Epoch 2452362.13431638
}

Albedo 0.10
}
CPU- Intel Pentium Core 2 Quad ,2.40GHz
RAM- 2Gb 1066MHz DDR2
Motherboard- Gigabyte P35 DQ6
Video Card- Nvidia GeForce 8800 GTS + 640Mb
Hard Drives- 2 SATA Raptor 10000rpm 150GB
OS- Windows Vista Home Premium 32

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

Post #2by chris » 28.01.2003, 17:20

Here's a partial fix:

Code: Select all

EllipticalOrbit {
    Period 27.321661
    SemiMajorAxis 1738.579946736
    AscendingNode 71.4915
    ArgOfPericenter 88.1162
    MeanAnomaly 55.1046
    Epoch 2452362.13431638
}


I got rid of the eccentricity and inclination, and set the period equal to the moon's rotation period of 27.321661 days. This does maintain a fixed position relative to the surface of the Moon. But, you can only place the lander on the equator . . . If the inclination is something other than zero, the latitude will vary even though the longitude is constant. There needs to be a better way to do what you want to do. One idea is to introduce a new orbit type:

Code: Select all

SyncOrbit {
    Latitude 47.5
    Longitude -122
    Altitude 0.120
}


It seems like it would be very useful . . . I'm just not sure that SyncOrbit is the right name.

--Chris

Topic author
Darkmiss
Posts: 1059
Joined: 20.08.2002
With us: 22 years 3 months
Location: London, England

Post #3by Darkmiss » 28.01.2003, 21:40

Thanks Chris,
It has stopped moving now, but it is upsidedown ?
CPU- Intel Pentium Core 2 Quad ,2.40GHz

RAM- 2Gb 1066MHz DDR2

Motherboard- Gigabyte P35 DQ6

Video Card- Nvidia GeForce 8800 GTS + 640Mb

Hard Drives- 2 SATA Raptor 10000rpm 150GB

OS- Windows Vista Home Premium 32

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

Post #4by chris » 28.01.2003, 22:02

Darkmiss wrote:Thanks Chris,
It has stopped moving now, but it is upsidedown ?

That's easy to fix . . . Add the following line:

Orientation [ 180 0 1 0 ]

That will rotate it 180 degrees about its y axis (though any axis would work).

--Chris

Topic author
Darkmiss
Posts: 1059
Joined: 20.08.2002
With us: 22 years 3 months
Location: London, England

Post #5by Darkmiss » 28.01.2003, 22:47

:D Thank you
CPU- Intel Pentium Core 2 Quad ,2.40GHz

RAM- 2Gb 1066MHz DDR2

Motherboard- Gigabyte P35 DQ6

Video Card- Nvidia GeForce 8800 GTS + 640Mb

Hard Drives- 2 SATA Raptor 10000rpm 150GB

OS- Windows Vista Home Premium 32

Borg Collective
Posts: 243
Joined: 24.11.2002
With us: 22 years
Location: Delta Quadrant

Post #6by Borg Collective » 30.01.2003, 07:17

Where can
we download Eagle Lander?
What am I doing? Ah, nothing much. Just laying on my bed, watching the stars, and sky, and keep asking myself: 'Where the Hell is my Roof?'.

Guest

Post #7by Guest » 30.01.2003, 12:19

Follow the thread 'Doug Gann's lem model'

Topic author
Darkmiss
Posts: 1059
Joined: 20.08.2002
With us: 22 years 3 months
Location: London, England

Post #8by Darkmiss » 31.01.2003, 00:02

Borg Collective wrote:Where can
we download Eagle Lander?



here it is http://www.bt.homepage.btinternet.co.uk/Files/Space-Shuttle.zip
CPU- Intel Pentium Core 2 Quad ,2.40GHz

RAM- 2Gb 1066MHz DDR2

Motherboard- Gigabyte P35 DQ6

Video Card- Nvidia GeForce 8800 GTS + 640Mb

Hard Drives- 2 SATA Raptor 10000rpm 150GB

OS- Windows Vista Home Premium 32


Return to “Development”