// 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 <
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);
// 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 );
// $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.
//
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
// $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.
//