From ef620f31702fff1e032794844b75cf0bfad5acc2 Mon Sep 17 00:00:00 2001 From: curt Date: Sat, 5 Dec 1998 14:19:51 +0000 Subject: [PATCH] Looking into a problem with cur_view_params.abs_view_pos initialization. --- Main/GLUTmain.cxx | 19 +++++++++++-------- Main/fg_init.cxx | 4 ++++ 2 files changed, 15 insertions(+), 8 deletions(-) diff --git a/Main/GLUTmain.cxx b/Main/GLUTmain.cxx index 40d73ff4d..84873ec31 100644 --- a/Main/GLUTmain.cxx +++ b/Main/GLUTmain.cxx @@ -476,10 +476,10 @@ static void fgMainLoop( void ) { // Fix elevation. I'm just sticking this here for now, it should // probably move eventually - /* printf("Before - ground = %.2f runway = %.2f alt = %.2f\n", + printf("Before - ground = %.2f runway = %.2f alt = %.2f\n", scenery.cur_elev, - FG_Runway_altitude * FEET_TO_METER, - FG_Altitude * FEET_TO_METER); */ + f->get_Runway_altitude() * FEET_TO_METER, + f->get_Altitude() * FEET_TO_METER); if ( scenery.cur_elev > -9990 ) { if ( f->get_Altitude() * FEET_TO_METER < @@ -493,17 +493,17 @@ static void fgMainLoop( void ) { cur_flight_params, scenery.cur_elev + alt_adjust_m ); - FG_LOG( FG_ALL, FG_BULK, + FG_LOG( FG_ALL, FG_DEBUG, "<*> resetting altitude to " << f->get_Altitude() * FEET_TO_METER << " meters" ); } f->set_Runway_altitude( scenery.cur_elev * METER_TO_FEET ); } - /* printf("Adjustment - ground = %.2f runway = %.2f alt = %.2f\n", + printf("Adjustment - ground = %.2f runway = %.2f alt = %.2f\n", scenery.cur_elev, - FG_Runway_altitude * FEET_TO_METER, - FG_Altitude * FEET_TO_METER); */ + f->get_Runway_altitude() * FEET_TO_METER, + f->get_Altitude() * FEET_TO_METER); // update "time" fgTimeUpdate(f, t); @@ -946,7 +946,7 @@ int main( int argc, char **argv ) { // fgInitDebug(); // set default log levels - fglog().setLogLevels( FG_ALL, FG_INFO ); + fglog().setLogLevels( FG_ALL, FG_DEBUG ); FG_LOG( FG_GENERAL, FG_INFO, "Flight Gear: Version " << VERSION << endl ); @@ -1014,6 +1014,9 @@ int main( int argc, char **argv ) { // $Log$ +// Revision 1.71 1998/12/05 14:19:51 curt +// Looking into a problem with cur_view_params.abs_view_pos initialization. +// // Revision 1.70 1998/12/03 01:17:14 curt // Converted fgFLIGHT to a class. // diff --git a/Main/fg_init.cxx b/Main/fg_init.cxx index 67b54b311..de3102da9 100644 --- a/Main/fg_init.cxx +++ b/Main/fg_init.cxx @@ -267,6 +267,7 @@ int fgInitSubsystems( void ) v->Init(); FG_LOG( FG_GENERAL, FG_DEBUG, "After v->init()"); v->UpdateViewMath(f); + FG_LOG( FG_GENERAL, FG_DEBUG, " abs_view_pos = " << v->abs_view_pos ); v->UpdateWorldToEye(f); // Build the solar system @@ -369,6 +370,9 @@ int fgInitSubsystems( void ) // $Log$ +// Revision 1.54 1998/12/05 14:19:53 curt +// Looking into a problem with cur_view_params.abs_view_pos initialization. +// // Revision 1.53 1998/12/03 04:25:05 curt // Working on fixing up new fgFLIGHT class. // -- 2.39.2