]> git.mxchange.org Git - simgear.git/blobdiff - simgear/ephemeris/ephemeris.cxx
Update the code a bit more, add a function to retreive the last error string and...
[simgear.git] / simgear / ephemeris / ephemeris.cxx
index 77bf3ef65ff5b744c883c3620e886993c1aea206..80ecd2d9f38eb2870651bde47538cec70858dc2b 100644 (file)
@@ -3,7 +3,7 @@
 //
 // Written by Curtis Olson, started March 2000.
 //
-// Copyright (C) 2000  Curtis L. Olson - curt@flightgear.org
+// Copyright (C) 2000  Curtis L. Olson - http://www.flightgear.org/~curt
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Library General Public
 // $Id$
 
 
+#include <iostream>
+
 #include "ephemeris.hxx"
 
 
 // Constructor
 SGEphemeris::SGEphemeris( const string &path ) {
     our_sun = new Star;
-    moon = new Moon;
+    moon = new MoonPos;
     mercury = new Mercury;
     venus = new Venus;
     mars = new Mars;
@@ -37,7 +39,11 @@ SGEphemeris::SGEphemeris( const string &path ) {
     saturn = new Saturn;
     uranus = new Uranus;
     neptune = new Neptune;
-    stars = new SGStarData( FGPath(path) );
+    nplanets = 7;
+    for ( int i = 0; i < nplanets; ++i ) {
+        sgdSetVec3( planets[i], 0.0, 0.0, 0.0 );
+    }
+    stars = new SGStarData( SGPath(path) );
 }