Skip to content

Commit

Permalink
Use L1.2 model for Jupiter Moons
Browse files Browse the repository at this point in the history
Instead of L1.  This seems to improve the precision, fixing mutual
eclipse of the moons bug
(Stellarium#222).

I haven't tested much, and the code might be slower than the previous L1
version that was using interpolation.
  • Loading branch information
guillaumechereau committed Jul 26, 2018
1 parent ba436fd commit 748b13f
Show file tree
Hide file tree
Showing 4 changed files with 784 additions and 4 deletions.
2 changes: 2 additions & 0 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,8 @@ SET(stellarium_lib_SRCS
core/planetsephems/gust86.h
core/planetsephems/l1.c
core/planetsephems/l1.h
core/planetsephems/l12.c
core/planetsephems/l12.h
core/planetsephems/marssat.c
core/planetsephems/marssat.h
core/planetsephems/pluto.c
Expand Down
9 changes: 5 additions & 4 deletions src/core/planetsephems/EphemWrapper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ Foundation, Inc., 51 Franklin Street, Suite 500, Boston, MA 02110-1335, USA.
#include "elp82b.h"
#include "marssat.h"
#include "l1.h"
#include "l12.h"
#include "tass17.h"
#include "gust86.h"
#include "de431.hpp"
Expand Down Expand Up @@ -355,25 +356,25 @@ void get_deimos_parent_coordsv(double jd, double xyz[3], double xyzdot[3], void*
void get_io_parent_coordsv(double jd, double xyz[3], double xyzdot[3], void* unused)
{
Q_UNUSED(unused);
GetL1Coor(jd, L1_IO, xyz, xyzdot);
GetL12Coor(jd, L1_IO, xyz, xyzdot);
}

void get_europa_parent_coordsv(double jd, double xyz[3], double xyzdot[3], void* unused)
{
Q_UNUSED(unused);
GetL1Coor(jd, L1_EUROPA, xyz, xyzdot);
GetL12Coor(jd, L1_EUROPA, xyz, xyzdot);
}

void get_ganymede_parent_coordsv(double jd, double xyz[3], double xyzdot[3], void* unused)
{
Q_UNUSED(unused);
GetL1Coor(jd, L1_GANYMEDE, xyz, xyzdot);
GetL12Coor(jd, L1_GANYMEDE, xyz, xyzdot);
}

void get_callisto_parent_coordsv(double jd, double xyz[3], double xyzdot[3], void* unused)
{
Q_UNUSED(unused);
GetL1Coor(jd, L1_CALLISTO, xyz, xyzdot);
GetL12Coor(jd, L1_CALLISTO, xyz, xyzdot);
}

void get_mimas_parent_coordsv(double jd, double xyz[3], double xyzdot[3], void* unused)
Expand Down
Loading

0 comments on commit 748b13f

Please sign in to comment.