From 3680a111488632d1f120826a1646a7e9e9ed0525 Mon Sep 17 00:00:00 2001 From: curt Date: Tue, 27 Jan 1998 00:47:41 +0000 Subject: [PATCH] Incorporated Paul Bleisch's new debug message system and commandline/config file processing code. --- Aircraft/aircraft.c | 28 +++++++++++++--------- Astro/moon.c | 20 ++++++++++------ Astro/orbits.c | 16 ++++++++----- Astro/planets.c | 30 ++++++++++++++---------- Astro/sky.c | 12 ++++++---- Astro/stars.c | 20 +++++++++------- Astro/sun.c | 25 ++++++++++++-------- Cockpit/cockpit.c | 25 +++++++++++++------- Cockpit/hud.c | 51 ++++++++++++++++++++++------------------ Controls/controls.h | 10 +++++--- FDM/flight.c | 20 +++++++++------- Joystick/joystick.c | 45 ++++++++++++++++++++++++++---------- Main/GLUTkey.c | 29 +++++++++++++---------- Main/GLUTmain.c | 29 +++++++++++++---------- Main/Makefile | 6 ++++- Main/fg_init.c | 54 ++++++++++++++++++++++++------------------- Main/views.c | 18 +++++++++------ Main/views.h | 10 +++++--- Scenery/bucketutils.c | 10 +++++--- Scenery/mesh.c | 14 +++++++---- Scenery/obj.h | 10 +++++--- Scenery/scenery.h | 10 +++++--- Scenery/tilecache.c | 10 +++++--- Scenery/tilecache.h | 13 +++++++---- Scenery/tilemgr.c | 24 ++++++++++++------- Simulator/Makefile | 5 ++++ Simulator/Thanks | 10 ++++++++ Simulator/commondefs | 2 +- Simulator/runfg | 6 ++++- Slew/slew.c | 12 ++++++---- Time/event.c | 21 ++++++++++------- Time/fg_time.c | 53 ++++++++++++++++++++++++------------------ Time/fg_time.h | 10 +++++--- Time/sunpos.c | 12 ++++++---- Time/sunpos.h | 2 +- Weather/weather.c | 17 +++++++++++--- 36 files changed, 443 insertions(+), 246 deletions(-) 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