Hi,
In current CVS it should work again, if not, tell me please!
On Donnerstag 06 Oktober 2005 16:03, Curtis L. Olson wrote:
> This looks suspicious:
>
> CVS log for source/src/Cockpit/cockpit.cxx
>
> Mathias Fröhlich has his name attached to the change from rev 1.13 to rev
> 1.14. This changes the AGL strip to read hight above some runway, not
> current terrain. This isn't intended to be a "real" instrument I guess, but
> perhaps work similar to a radio altimeter which does show you the height
> above current terrain.
>
> The CVS logs don't mention any intent to change this behavior, and I don't
> recall any discussion, so I'd like to change the default behavior back to
> reporting height above the current location.
It did not want to change that behavour (though I did, a least for YASim, but
that was a bug).
That runway altitude is the FDM interfces' ground elevation.
Look into FGInterface, both get_Runway_altitude and get_ground_elev_ft return
the same value.
What was there before, the 'current scenery altitude', contained the same
value, the altitude of the ground triangle below the aircraft.
> Hmmm, it seems like the original get_cur_elev() has been removed from the
> api.
Yep, I removed that one in favour to a more finegrained function returning the
ground's altitude at a given lat/lon pair in FGScenery.
The scenery elevation somewhere near the aircraft is stored currently in
FGInterface.
Also we have a scenery elevation value in SGLocation, that one is used for the
current view's scenery elevation which might be different than the current
aircrafts.
That lat/lon dependent query function has some applications in the AI/ATC
directories, where we had duplicated code of that query.
Having that is definitly a win.
Whenever it is not yet working correctly, tell me please.
Greetings
Mathias
--
Mathias Fröhlich, email: [EMAIL PROTECTED]
_______________________________________________
Flightgear-devel mailing list
[email protected]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel
2f585eeea02e2c79d7b1d8c4963bae2d