Migrated this source over to SimGear.
This commit is contained in:
@@ -1,18 +1,34 @@
|
|||||||
noinst_LIBRARIES = libEphemeris.a
|
includedir = @includedir@/ephemeris
|
||||||
|
|
||||||
libEphemeris_a_SOURCES = \
|
lib_LIBRARIES = libsgephem.a
|
||||||
celestialBody.cxx celestialBody.hxx \
|
|
||||||
ephemeris.cxx ephemeris.hxx \
|
include_HEADERS = \
|
||||||
jupiter.cxx jupiter.hxx \
|
celestialBody.hxx \
|
||||||
mars.cxx mars.hxx \
|
ephemeris.hxx \
|
||||||
mercury.cxx mercury.hxx \
|
jupiter.hxx \
|
||||||
moon.cxx moon.hxx \
|
mars.hxx \
|
||||||
neptune.cxx neptune.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 \
|
pluto.hxx \
|
||||||
saturn.cxx saturn.hxx \
|
saturn.cxx \
|
||||||
star.cxx star.hxx \
|
star.cxx \
|
||||||
stars.cxx stars.hxx \
|
stars.cxx \
|
||||||
uranus.cxx uranus.hxx \
|
uranus.cxx \
|
||||||
venus.cxx venus.hxx
|
venus.cxx
|
||||||
|
|
||||||
INCLUDES += -I$(top_builddir) -I$(top_builddir)/src
|
INCLUDES += -I$(top_builddir)
|
||||||
|
|||||||
@@ -32,8 +32,7 @@
|
|||||||
|
|
||||||
|
|
||||||
#include <simgear/constants.h>
|
#include <simgear/constants.h>
|
||||||
|
#include <simgear/timing/fg_time.hxx>
|
||||||
#include <Time/fg_time.hxx>
|
|
||||||
|
|
||||||
class Star;
|
class Star;
|
||||||
|
|
||||||
|
|||||||
@@ -32,7 +32,7 @@
|
|||||||
|
|
||||||
#include <plib/sg.h>
|
#include <plib/sg.h>
|
||||||
|
|
||||||
#include <Time/fg_time.hxx>
|
#include <simgear/timing/fg_time.hxx>
|
||||||
|
|
||||||
#include "star.hxx"
|
#include "star.hxx"
|
||||||
#include "moon.hxx"
|
#include "moon.hxx"
|
||||||
|
|||||||
@@ -24,7 +24,8 @@
|
|||||||
#ifndef _JUPITER_HXX_
|
#ifndef _JUPITER_HXX_
|
||||||
#define _JUPITER_HXX_
|
#define _JUPITER_HXX_
|
||||||
|
|
||||||
#include <Time/fg_time.hxx>
|
#include <simgear/timing/fg_time.hxx>
|
||||||
|
|
||||||
#include "celestialBody.hxx"
|
#include "celestialBody.hxx"
|
||||||
#include "star.hxx"
|
#include "star.hxx"
|
||||||
|
|
||||||
|
|||||||
@@ -24,7 +24,8 @@
|
|||||||
#ifndef _MARS_HXX_
|
#ifndef _MARS_HXX_
|
||||||
#define _MARS_HXX_
|
#define _MARS_HXX_
|
||||||
|
|
||||||
#include <Time/fg_time.hxx>
|
#include <simgear/timing/fg_time.hxx>
|
||||||
|
|
||||||
#include "celestialBody.hxx"
|
#include "celestialBody.hxx"
|
||||||
#include "star.hxx"
|
#include "star.hxx"
|
||||||
|
|
||||||
|
|||||||
@@ -24,7 +24,8 @@
|
|||||||
#ifndef _MERCURY_HXX_
|
#ifndef _MERCURY_HXX_
|
||||||
#define _MERCURY_HXX_
|
#define _MERCURY_HXX_
|
||||||
|
|
||||||
#include <Time/fg_time.hxx>
|
#include <simgear/timing/fg_time.hxx>
|
||||||
|
|
||||||
#include "celestialBody.hxx"
|
#include "celestialBody.hxx"
|
||||||
#include "star.hxx"
|
#include "star.hxx"
|
||||||
|
|
||||||
|
|||||||
@@ -28,15 +28,12 @@
|
|||||||
#include <simgear/debug/logstream.hxx>
|
#include <simgear/debug/logstream.hxx>
|
||||||
#include <simgear/misc/fgpath.hxx>
|
#include <simgear/misc/fgpath.hxx>
|
||||||
|
|
||||||
#include <Main/options.hxx>
|
|
||||||
#include <Objects/texload.h>
|
|
||||||
|
|
||||||
#ifdef __BORLANDC__
|
#ifdef __BORLANDC__
|
||||||
# define exception c_exception
|
# define exception c_exception
|
||||||
#endif
|
#endif
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
|
|
||||||
#include <FDM/flight.hxx>
|
// #include <FDM/flight.hxx>
|
||||||
|
|
||||||
#include "moon.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,
|
Ls, Lm, D, F, mpar, gclat, rho, HA, g,
|
||||||
geoRa, geoDec;
|
geoRa, geoDec;
|
||||||
|
|
||||||
fgAIRCRAFT *air;
|
|
||||||
FGInterface *f;
|
|
||||||
|
|
||||||
air = ¤t_aircraft;
|
|
||||||
f = air->fdm_state;
|
|
||||||
|
|
||||||
updateOrbElements(t);
|
updateOrbElements(t);
|
||||||
actTime = fgCalcActTime(t);
|
actTime = fgCalcActTime(t);
|
||||||
|
|
||||||
|
|||||||
@@ -26,10 +26,7 @@
|
|||||||
|
|
||||||
|
|
||||||
#include <simgear/constants.h>
|
#include <simgear/constants.h>
|
||||||
|
#include <simgear/timing/fg_time.hxx>
|
||||||
#include <Aircraft/aircraft.hxx>
|
|
||||||
#include <Main/views.hxx>
|
|
||||||
#include <Time/fg_time.hxx>
|
|
||||||
|
|
||||||
#include "celestialBody.hxx"
|
#include "celestialBody.hxx"
|
||||||
#include "star.hxx"
|
#include "star.hxx"
|
||||||
|
|||||||
@@ -24,7 +24,8 @@
|
|||||||
#ifndef _NEPTUNE_HXX_
|
#ifndef _NEPTUNE_HXX_
|
||||||
#define _NEPTUNE_HXX_
|
#define _NEPTUNE_HXX_
|
||||||
|
|
||||||
#include <Time/fg_time.hxx>
|
#include <simgear/timing/fg_time.hxx>
|
||||||
|
|
||||||
#include "celestialBody.hxx"
|
#include "celestialBody.hxx"
|
||||||
#include "star.hxx"
|
#include "star.hxx"
|
||||||
|
|
||||||
|
|||||||
@@ -24,7 +24,8 @@
|
|||||||
#ifndef _SATURN_HXX_
|
#ifndef _SATURN_HXX_
|
||||||
#define _SATURN_HXX_
|
#define _SATURN_HXX_
|
||||||
|
|
||||||
#include <Time/fg_time.hxx>
|
#include <simgear/timing/fg_time.hxx>
|
||||||
|
|
||||||
#include "celestialBody.hxx"
|
#include "celestialBody.hxx"
|
||||||
#include "star.hxx"
|
#include "star.hxx"
|
||||||
|
|
||||||
|
|||||||
@@ -30,10 +30,6 @@
|
|||||||
|
|
||||||
#include <simgear/debug/logstream.hxx>
|
#include <simgear/debug/logstream.hxx>
|
||||||
|
|
||||||
#include <Time/sunpos.hxx>
|
|
||||||
#include <Time/light.hxx>
|
|
||||||
#include <Main/options.hxx>
|
|
||||||
|
|
||||||
#include "star.hxx"
|
#include "star.hxx"
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -25,7 +25,7 @@
|
|||||||
#define _STAR_HXX_
|
#define _STAR_HXX_
|
||||||
|
|
||||||
|
|
||||||
#include <Time/fg_time.hxx>
|
// #include <Time/fg_time.hxx>
|
||||||
#include "celestialBody.hxx"
|
#include "celestialBody.hxx"
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -24,7 +24,8 @@
|
|||||||
#ifndef _URANUS_HXX_
|
#ifndef _URANUS_HXX_
|
||||||
#define _URANUS_HXX_
|
#define _URANUS_HXX_
|
||||||
|
|
||||||
#include <Time/fg_time.hxx>
|
#include <simgear/timing/fg_time.hxx>
|
||||||
|
|
||||||
#include "celestialBody.hxx"
|
#include "celestialBody.hxx"
|
||||||
#include "star.hxx"
|
#include "star.hxx"
|
||||||
|
|
||||||
|
|||||||
@@ -24,7 +24,8 @@
|
|||||||
#ifndef _VENUS_HXX_
|
#ifndef _VENUS_HXX_
|
||||||
#define _VENUS_HXX_
|
#define _VENUS_HXX_
|
||||||
|
|
||||||
#include <Time/fg_time.hxx>
|
#include <simgear/timing/fg_time.hxx>
|
||||||
|
|
||||||
#include "celestialBody.hxx"
|
#include "celestialBody.hxx"
|
||||||
#include "star.hxx"
|
#include "star.hxx"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user