Migrated this source over to SimGear.

This commit is contained in:
curt 2000-07-05 00:20:08 +00:00
parent 6531b1ebbc
commit a46163bcd7
14 changed files with 50 additions and 44 deletions

View File

@ -1,18 +1,34 @@
noinst_LIBRARIES = libEphemeris.a
includedir = @includedir@/ephemeris
libEphemeris_a_SOURCES = \
celestialBody.cxx celestialBody.hxx \
ephemeris.cxx ephemeris.hxx \
jupiter.cxx jupiter.hxx \
mars.cxx mars.hxx \
mercury.cxx mercury.hxx \
moon.cxx moon.hxx \
neptune.cxx neptune.hxx \
lib_LIBRARIES = libsgephem.a
include_HEADERS = \
celestialBody.hxx \
ephemeris.hxx \
jupiter.hxx \
mars.hxx \
mercury.hxx \
moon.hxx \
neptune.hxx \
saturn.hxx \
star.hxx \
stars.hxx \
uranus.hxx \
venus.hxx
libsgephem_a_SOURCES = \
celestialBody.cxx \
ephemeris.cxx \
jupiter.cxx \
mars.cxx \
mercury.cxx \
moon.cxx \
neptune.cxx \
pluto.hxx \
saturn.cxx saturn.hxx \
star.cxx star.hxx \
stars.cxx stars.hxx \
uranus.cxx uranus.hxx \
venus.cxx venus.hxx
saturn.cxx \
star.cxx \
stars.cxx \
uranus.cxx \
venus.cxx
INCLUDES += -I$(top_builddir) -I$(top_builddir)/src
INCLUDES += -I$(top_builddir)

View File

@ -32,8 +32,7 @@
#include <simgear/constants.h>
#include <Time/fg_time.hxx>
#include <simgear/timing/fg_time.hxx>
class Star;

View File

@ -32,7 +32,7 @@
#include <plib/sg.h>
#include <Time/fg_time.hxx>
#include <simgear/timing/fg_time.hxx>
#include "star.hxx"
#include "moon.hxx"

View File

@ -24,7 +24,8 @@
#ifndef _JUPITER_HXX_
#define _JUPITER_HXX_
#include <Time/fg_time.hxx>
#include <simgear/timing/fg_time.hxx>
#include "celestialBody.hxx"
#include "star.hxx"

View File

@ -24,7 +24,8 @@
#ifndef _MARS_HXX_
#define _MARS_HXX_
#include <Time/fg_time.hxx>
#include <simgear/timing/fg_time.hxx>
#include "celestialBody.hxx"
#include "star.hxx"

View File

@ -24,7 +24,8 @@
#ifndef _MERCURY_HXX_
#define _MERCURY_HXX_
#include <Time/fg_time.hxx>
#include <simgear/timing/fg_time.hxx>
#include "celestialBody.hxx"
#include "star.hxx"

View File

@ -28,15 +28,12 @@
#include <simgear/debug/logstream.hxx>
#include <simgear/misc/fgpath.hxx>
#include <Main/options.hxx>
#include <Objects/texload.h>
#ifdef __BORLANDC__
# define exception c_exception
#endif
#include <math.h>
#include <FDM/flight.hxx>
// #include <FDM/flight.hxx>
#include "moon.hxx"
@ -89,12 +86,6 @@ void Moon::updatePosition(FGTime *t, double lat, Star *ourSun)
Ls, Lm, D, F, mpar, gclat, rho, HA, g,
geoRa, geoDec;
fgAIRCRAFT *air;
FGInterface *f;
air = &current_aircraft;
f = air->fdm_state;
updateOrbElements(t);
actTime = fgCalcActTime(t);

View File

@ -26,10 +26,7 @@
#include <simgear/constants.h>
#include <Aircraft/aircraft.hxx>
#include <Main/views.hxx>
#include <Time/fg_time.hxx>
#include <simgear/timing/fg_time.hxx>
#include "celestialBody.hxx"
#include "star.hxx"

View File

@ -24,7 +24,8 @@
#ifndef _NEPTUNE_HXX_
#define _NEPTUNE_HXX_
#include <Time/fg_time.hxx>
#include <simgear/timing/fg_time.hxx>
#include "celestialBody.hxx"
#include "star.hxx"

View File

@ -24,7 +24,8 @@
#ifndef _SATURN_HXX_
#define _SATURN_HXX_
#include <Time/fg_time.hxx>
#include <simgear/timing/fg_time.hxx>
#include "celestialBody.hxx"
#include "star.hxx"

View File

@ -30,10 +30,6 @@
#include <simgear/debug/logstream.hxx>
#include <Time/sunpos.hxx>
#include <Time/light.hxx>
#include <Main/options.hxx>
#include "star.hxx"

View File

@ -25,7 +25,7 @@
#define _STAR_HXX_
#include <Time/fg_time.hxx>
// #include <Time/fg_time.hxx>
#include "celestialBody.hxx"

View File

@ -24,7 +24,8 @@
#ifndef _URANUS_HXX_
#define _URANUS_HXX_
#include <Time/fg_time.hxx>
#include <simgear/timing/fg_time.hxx>
#include "celestialBody.hxx"
#include "star.hxx"

View File

@ -24,7 +24,8 @@
#ifndef _VENUS_HXX_
#define _VENUS_HXX_
#include <Time/fg_time.hxx>
#include <simgear/timing/fg_time.hxx>
#include "celestialBody.hxx"
#include "star.hxx"