- FG_LOG( FG_GENERAL, FG_INFO,
- "Updated position (after elevation adj): ("
- << (cur_fdm_state->get_Latitude() * RAD_TO_DEG) << ", "
- << (cur_fdm_state->get_Longitude() * RAD_TO_DEG) << ", "
- << (cur_fdm_state->get_Altitude() * FEET_TO_METER) << ")" );
-
- // We need to calculate a few more values here that would normally
- // be calculated by the FDM so that the current_view.UpdateViewMath()
- // routine doesn't get hosed.
-
- double sea_level_radius_meters;
- double lat_geoc;
- // Set the FG variables first
- sgGeodToGeoc( cur_fdm_state->get_Latitude(), cur_fdm_state->get_Altitude(),
- &sea_level_radius_meters, &lat_geoc);
- /* cur_fdm_state->set_Geocentric_Position( lat_geoc, cur_fdm_state->get_Longitude(),
- cur_fdm_state->get_Altitude() +
- (sea_level_radius_meters * METER_TO_FEET) );
- */
- cur_fdm_state->set_Sea_level_radius( sea_level_radius_meters * METER_TO_FEET );
-
- /* cur_fdm_state->set_sin_cos_longitude(cur_fdm_state->get_Longitude());
- cur_fdm_state->set_sin_cos_latitude(cur_fdm_state->get_Latitude());
-
- cur_fdm_state->set_sin_lat_geocentric(sin(lat_geoc));
- cur_fdm_state->set_cos_lat_geocentric(cos(lat_geoc)); */
-
-
- // The following section sets up the flight model EOM parameters
- // and should really be read in from one or more files.
-
- // Initial Velocity
- //cur_fdm_state->set_Velocities_Local( globals->get_options()->get_uBody(),
- // globals->get_options()->get_vBody(),
- // globals->get_options()->get_wBody());
- fgVelocityInit();
-
- // Initial Orientation
- cur_fdm_state->set_Euler_Angles( globals->get_options()->get_roll() * DEG_TO_RAD,
- globals->get_options()->get_pitch() * DEG_TO_RAD,
- globals->get_options()->get_heading() * DEG_TO_RAD );
-
- // Initial Angular Body rates
- //cur_fdm_state->set_Omega_Body( 7.206685E-05, 0.0, 9.492658E-05 );
-
- //cur_fdm_state->set_Earth_position_angle( 0.0 );
-
- // Mass properties and geometry values
- //cur_fdm_state->set_Inertias( 8.547270E+01,
- // 1.048000E+03, 3.000000E+03, 3.530000E+03, 0.000000E+00 );
-
- // CG position w.r.t. ref. point
- //cur_fdm_state->set_CG_Position( 0.0, 0.0, 0.0 );
-
- // Initialize the event manager