Skip to content

Commit 4a5c744

Browse files
committed
fix the function name to barycentric for Sun special
1 parent 910b92f commit 4a5c744

2 files changed

Lines changed: 9 additions & 2 deletions

File tree

src/core/modules/SolarSystem.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1190,7 +1190,7 @@ bool SolarSystem::loadPlanets(const QString& filePath)
11901190
else
11911191
{
11921192
static const QMap<QString, posFuncType>posfuncMap={
1193-
{ "sun_special", &get_sun_helio_coordsv},
1193+
{ "sun_special", &get_sun_barycentric_coordsv},
11941194
{ "mercury_special", &get_mercury_helio_coordsv},
11951195
{ "venus_special", &get_venus_helio_coordsv},
11961196
{ "earth_special", &get_earth_helio_coordsv},

src/core/planetsephems/EphemWrapper.cpp

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,8 +287,15 @@ void get_pluto_helio_coordsv(double jd,double xyz[3], double xyzdot[3], void* un
287287
}
288288
}
289289

290-
/* Return barycentric coordinates for the sun */
291290
void get_sun_helio_coordsv(double jd,double xyz[3], double xyzdot[3], void* unused)
291+
{
292+
Q_UNUSED(unused)
293+
xyz[0] =0.; xyz[1] =0.; xyz[2] =0.;
294+
xyzdot[0]=0.; xyzdot[1]=0.; xyzdot[2]=0.;
295+
}
296+
297+
/* Return barycentric coordinates for the sun */
298+
void get_sun_barycentric_coordsv(double jd,double xyz[3], double xyzdot[3], void* unused)
292299
{
293300
Q_UNUSED(unused)
294301
get_planet_bary_coordsv(jd, xyz, xyzdot, EPHEM_SUN_ID);

0 commit comments

Comments
 (0)