1
0
Fork 0

Fix from Norman to make some of his optimization work better.

This commit is contained in:
curt 1999-04-15 23:59:01 +00:00
parent f22ca6b4cf
commit 71613dd4ee

View file

@ -114,9 +114,6 @@ int fgInitPosition( void ) {
f->set_Latitude( current_options.get_lat() * DEG_TO_RAD ); f->set_Latitude( current_options.get_lat() * DEG_TO_RAD );
} }
f->set_sin_cos_longitude(current_options.get_lon() * DEG_TO_RAD);
f->set_sin_cos_latitude(current_options.get_lat() * DEG_TO_RAD);
FG_LOG( FG_GENERAL, FG_INFO, FG_LOG( FG_GENERAL, FG_INFO,
"starting altitude is = " << current_options.get_altitude() ); "starting altitude is = " << current_options.get_altitude() );
@ -270,6 +267,12 @@ int fgInitSubsystems( void )
(sea_level_radius_meters * METER_TO_FEET) ); (sea_level_radius_meters * METER_TO_FEET) );
f->set_Sea_level_radius( sea_level_radius_meters * METER_TO_FEET ); f->set_Sea_level_radius( sea_level_radius_meters * METER_TO_FEET );
f->set_sin_cos_longitude(f->get_Longitude());
f->set_sin_cos_latitude(f->get_Latitude());
f->set_sin_lat_geocentric(sin(lat_geoc));
f->set_cos_lat_geocentric(cos(lat_geoc));
// The following section sets up the flight model EOM parameters // The following section sets up the flight model EOM parameters
// and should really be read in from one or more files. // and should really be read in from one or more files.