X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=Astro%2Fplanets.c;h=6c3af2fc20d6a88569f623aa077be3c004a121b3;hb=1413fae16c02baf97718797265b5fe4adf393159;hp=71d254f60a45709c16344f4e69575bf97c94e08c;hpb=fa9d78ffb693bbd87904ec4f1f6804ec5b64bde2;p=simgear.git diff --git a/Astro/planets.c b/Astro/planets.c index 71d254f6..6c3af2fc 100644 --- a/Astro/planets.c +++ b/Astro/planets.c @@ -27,7 +27,7 @@ #include #include #include - +#include
struct CelestialCoord fgCalculatePlanet(struct OrbElements planet, struct OrbElements theSun, @@ -118,25 +118,31 @@ struct CelestialCoord fgCalculatePlanet(struct OrbElements planet, result.magnitude = -6.90 + 5*log10 (r*R) + 0.001 *FV; break; default: - printf("index %d out of range !!!!\n", idx); + fgPrintf( FG_ASTRO, FG_ALERT, "index %d out of range !!!!\n", idx); } - printf(" Planet found at %f (ra), %f (dec)\n", - result.RightAscension, result.Declination); - printf(" Geocentric dist %f\n" - " Heliocentric dist %f\n" - " Distance to the sun %f\n" - " Phase angle %f\n" - " Brightness %f\n", R, r, s, FV, result.magnitude); + fgPrintf( FG_ASTRO, FG_DEBUG, + " Planet found at %f (ra), %f (dec)\n", + result.RightAscension, result.Declination); + fgPrintf( FG_ASTRO, FG_DEBUG, + " Geocentric dist %f\n" + " Heliocentric dist %f\n" + " Distance to the sun %f\n" + " Phase angle %f\n" + " Brightness %f\n", R, r, s, FV, result.magnitude); return result; } /* $Log$ -/* Revision 1.2 1998/01/19 19:26:59 curt -/* Merged in make system changes from Bob Kuehne -/* This should simplify things tremendously. +/* Revision 1.3 1998/01/27 00:47:47 curt +/* Incorporated Paul Bleisch's new debug message +/* system and commandline/config file processing code. /* + * Revision 1.2 1998/01/19 19:26:59 curt + * Merged in make system changes from Bob Kuehne + * This should simplify things tremendously. + * * Revision 1.1 1998/01/07 03:16:18 curt * Moved from .../Src/Scenery/ to .../Src/Astro/ *