1
0
Fork 0
This commit is contained in:
curt 2000-04-21 05:27:13 +00:00
parent ce86c83222
commit afcf4d4324
2 changed files with 8 additions and 7 deletions

3
Thanks
View file

@ -238,8 +238,7 @@ Robin Peel <robin@cpwd.com>
Alex Perry <arp11@pacbell.net> Alex Perry <arp11@pacbell.net>
Contributed code to more accurately model VSI, DG, Altitude. Contributed code to more accurately model VSI, DG, Altitude.
I have a feeling there's been a few other things as well, but Contributed to the Install and Getting Started manual.
my memory is failing me.
Friedemann Reinhard <mpt218@faupt212.physik.uni-erlangen.de> Friedemann Reinhard <mpt218@faupt212.physik.uni-erlangen.de>

View file

@ -709,10 +709,11 @@ FGTileMgr::current_elev_ssg( const Point3D& abs_view_pos,
sgdSetVec3(sgavp, abs_view_pos.x(), abs_view_pos.y(), abs_view_pos.z() ); sgdSetVec3(sgavp, abs_view_pos.x(), abs_view_pos.y(), abs_view_pos.z() );
sgdSetVec3(sgvp, view_pos.x(), view_pos.y(), view_pos.z() ); sgdSetVec3(sgvp, view_pos.x(), view_pos.y(), view_pos.z() );
// cout << "starting ssg_los, abs view pos = " << abs_view_pos[0] << " " FG_LOG( FG_TERRAIN, FG_DEBUG, "starting ssg_los, abs view pos = "
// << abs_view_pos[1] << " " << abs_view_pos[2] << endl; << abs_view_pos[0] << " " << abs_view_pos[1] << " "
// cout << "starting ssg_los, view pos = " << view_pos[0] << " " << abs_view_pos[2] );
// << view_pos[1] << " " << view_pos[2] << endl; FG_LOG( FG_TERRAIN, FG_DEBUG, "starting ssg_los, view pos = "
<< view_pos[0] << " " << view_pos[1] << " " << view_pos[2] );
my_ssg_los( "", scene, m, sgvp, sgavp ); my_ssg_los( "", scene, m, sgvp, sgavp );
double result = -9999; double result = -9999;
@ -726,6 +727,7 @@ FGTileMgr::current_elev_ssg( const Point3D& abs_view_pos,
double lat_geod, alt, sea_level_r; double lat_geod, alt, sea_level_r;
fgGeocToGeod(pp.lat(), pp.radius(), &lat_geod, fgGeocToGeod(pp.lat(), pp.radius(), &lat_geod,
&alt, &sea_level_r); &alt, &sea_level_r);
FG_LOG( FG_TERRAIN, FG_DEBUG, " alt (meters) = " << alt );
// printf("alt = %.2f\n", alt); // printf("alt = %.2f\n", alt);
// exit since we found an intersection // exit since we found an intersection
@ -950,7 +952,7 @@ int FGTileMgr::update( void ) {
// find our current elevation (feed in the current bucket to save work) // find our current elevation (feed in the current bucket to save work)
Point3D geod_pos = Point3D( f->get_Longitude(), f->get_Latitude(), 0.0); Point3D geod_pos = Point3D( f->get_Longitude(), f->get_Latitude(), 0.0);
Point3D tmp_abs_view_pos = fgGeodToCart(geod_pos); // Point3D tmp_abs_view_pos = fgGeodToCart(geod_pos);
// cout << "current elevation (old) == " // cout << "current elevation (old) == "
// << current_elev( f->get_Longitude(), f->get_Latitude(), // << current_elev( f->get_Longitude(), f->get_Latitude(),