From: curt Date: Tue, 27 Jan 1998 00:47:41 +0000 (+0000) Subject: Incorporated Paul Bleisch's new debug message X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=3680a111488632d1f120826a1646a7e9e9ed0525;p=flightgear.git Incorporated Paul Bleisch's new debug message system and commandline/config file processing code. --- diff --git a/Aircraft/aircraft.c b/Aircraft/aircraft.c index 54e47f539..62673933e 100644 --- a/Aircraft/aircraft.c +++ b/Aircraft/aircraft.c @@ -27,8 +27,8 @@ #include #include -#include - +#include +#include
/* This is a record containing all the info for the aircraft currently being operated */ @@ -43,20 +43,26 @@ void fgAircraftOutputCurrent(struct fgAIRCRAFT *a) { f = &a->flight; c = &a->controls; - printf("Pos = (%.2f,%.2f,%.2f) (Phi,Theta,Psi)=(%.2f,%.2f,%.2f)\n", - FG_Longitude * 3600.0 * RAD_TO_DEG, - FG_Latitude * 3600.0 * RAD_TO_DEG, - FG_Altitude, FG_Phi, FG_Theta, FG_Psi); - printf("Kts = %.0f Elev = %.2f, Aileron = %.2f, Rudder = %.2f Power = %.2f\n", - FG_V_equiv_kts, FG_Elevator, FG_Aileron, FG_Rudder, FG_Throttle[0]); + fgPrintf( FG_FLIGHT, FG_DEBUG, + "Pos = (%.2f,%.2f,%.2f) (Phi,Theta,Psi)=(%.2f,%.2f,%.2f)\n", + FG_Longitude * 3600.0 * RAD_TO_DEG, + FG_Latitude * 3600.0 * RAD_TO_DEG, + FG_Altitude, FG_Phi, FG_Theta, FG_Psi); + fgPrintf( FG_FLIGHT, FG_DEBUG, + "Kts = %.0f Elev = %.2f, Aileron = %.2f, Rudder = %.2f Power = %.2f\n", + FG_V_equiv_kts, FG_Elevator, FG_Aileron, FG_Rudder, FG_Throttle[0]); } /* $Log$ -/* Revision 1.14 1998/01/19 19:26:56 curt -/* Merged in make system changes from Bob Kuehne -/* This should simplify things tremendously. +/* Revision 1.15 1998/01/27 00:47:46 curt +/* Incorporated Paul Bleisch's new debug message +/* system and commandline/config file processing code. /* + * Revision 1.14 1998/01/19 19:26:56 curt + * Merged in make system changes from Bob Kuehne + * This should simplify things tremendously. + * * Revision 1.13 1997/12/15 23:54:30 curt * Add xgl wrappers for debugging. * Generate terrain normals on the fly. diff --git a/Astro/moon.c b/Astro/moon.c index 4160b8d44..a32ccd3f5 100644 --- a/Astro/moon.c +++ b/Astro/moon.c @@ -29,10 +29,11 @@ #include #include -#include +#include #include #include
#include