1
0
Fork 0

Looking into a problem with cur_view_params.abs_view_pos initialization.

This commit is contained in:
curt 1998-12-05 14:19:51 +00:00
parent 835927d295
commit ef620f3170
2 changed files with 15 additions and 8 deletions

View file

@ -476,10 +476,10 @@ static void fgMainLoop( void ) {
// Fix elevation. I'm just sticking this here for now, it should // Fix elevation. I'm just sticking this here for now, it should
// probably move eventually // probably move eventually
/* printf("Before - ground = %.2f runway = %.2f alt = %.2f\n", printf("Before - ground = %.2f runway = %.2f alt = %.2f\n",
scenery.cur_elev, scenery.cur_elev,
FG_Runway_altitude * FEET_TO_METER, f->get_Runway_altitude() * FEET_TO_METER,
FG_Altitude * FEET_TO_METER); */ f->get_Altitude() * FEET_TO_METER);
if ( scenery.cur_elev > -9990 ) { if ( scenery.cur_elev > -9990 ) {
if ( f->get_Altitude() * FEET_TO_METER < if ( f->get_Altitude() * FEET_TO_METER <
@ -493,17 +493,17 @@ static void fgMainLoop( void ) {
cur_flight_params, cur_flight_params,
scenery.cur_elev + alt_adjust_m ); scenery.cur_elev + alt_adjust_m );
FG_LOG( FG_ALL, FG_BULK, FG_LOG( FG_ALL, FG_DEBUG,
"<*> resetting altitude to " "<*> resetting altitude to "
<< f->get_Altitude() * FEET_TO_METER << " meters" ); << f->get_Altitude() * FEET_TO_METER << " meters" );
} }
f->set_Runway_altitude( scenery.cur_elev * METER_TO_FEET ); 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, scenery.cur_elev,
FG_Runway_altitude * FEET_TO_METER, f->get_Runway_altitude() * FEET_TO_METER,
FG_Altitude * FEET_TO_METER); */ f->get_Altitude() * FEET_TO_METER);
// update "time" // update "time"
fgTimeUpdate(f, t); fgTimeUpdate(f, t);
@ -946,7 +946,7 @@ int main( int argc, char **argv ) {
// fgInitDebug(); // fgInitDebug();
// set default log levels // 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 ); FG_LOG( FG_GENERAL, FG_INFO, "Flight Gear: Version " << VERSION << endl );
@ -1014,6 +1014,9 @@ int main( int argc, char **argv ) {
// $Log$ // $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 // Revision 1.70 1998/12/03 01:17:14 curt
// Converted fgFLIGHT to a class. // Converted fgFLIGHT to a class.
// //

View file

@ -267,6 +267,7 @@ int fgInitSubsystems( void )
v->Init(); v->Init();
FG_LOG( FG_GENERAL, FG_DEBUG, "After v->init()"); FG_LOG( FG_GENERAL, FG_DEBUG, "After v->init()");
v->UpdateViewMath(f); v->UpdateViewMath(f);
FG_LOG( FG_GENERAL, FG_DEBUG, " abs_view_pos = " << v->abs_view_pos );
v->UpdateWorldToEye(f); v->UpdateWorldToEye(f);
// Build the solar system // Build the solar system
@ -369,6 +370,9 @@ int fgInitSubsystems( void )
// $Log$ // $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 // Revision 1.53 1998/12/03 04:25:05 curt
// Working on fixing up new fgFLIGHT class. // Working on fixing up new fgFLIGHT class.
// //