Re: [Flightgear-devel] AGL and HUD

2005-10-09 Thread Mathias Fröhlich

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
Flightgear-devel@flightgear.org
http://mail.flightgear.org/mailman/listinfo/flightgear-devel
2f585eeea02e2c79d7b1d8c4963bae2d


[Flightgear-devel] AGL and HUD

2005-10-06 Thread rhett3

I have had this problem with an older version of FG, around 8.0, when
using a separate computer for the scenery.  For reasons unexplained
the altitude was set initially in /Network/native_fdm.cxx as an addon to
the runway height, then the AGL changed, and with it the altitude.  I
fixed it for our purposes by locking the AGL to the takeoff runway
altitude, but the current version does it the other way, getting AGL
from the altitude and subtracting the current ground elevation to
get the AGL.

I don't know if this helps in your case.

Rex
[EMAIL PROTECTED]

___
Flightgear-devel mailing list
Flightgear-devel@flightgear.org
http://mail.flightgear.org/mailman/listinfo/flightgear-devel
2f585eeea02e2c79d7b1d8c4963bae2d


Re: [Flightgear-devel] AGL and HUD

2005-10-06 Thread Curtis L. Olson

rhett3 wrote:


I have had this problem with an older version of FG, around 8.0, when
using a separate computer for the scenery.  For reasons unexplained
the altitude was set initially in /Network/native_fdm.cxx as an addon to
the runway height, then the AGL changed, and with it the altitude.  I
fixed it for our purposes by locking the AGL to the takeoff runway
altitude, but the current version does it the other way, getting AGL
from the altitude and subtracting the current ground elevation to
get the AGL.

I don't know if this helps in your case.



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.

Hmmm, it seems like the original get_cur_elev() has been removed from the api.  
Did someone
just bandaid in a quick call to runway altitude (which is probably not updated 
as you fly from
place to place?)

Regards,

Curt.

--
Curtis Olsonhttp://www.flightgear.org/~curt
HumanFIRST Program  http://www.humanfirst.umn.edu/
FlightGear Project  http://www.flightgear.org
Unique text:2f585eeea02e2c79d7b1d8c4963bae2d


___
Flightgear-devel mailing list
Flightgear-devel@flightgear.org
http://mail.flightgear.org/mailman/listinfo/flightgear-devel
2f585eeea02e2c79d7b1d8c4963bae2d