Sign in to follow this  
Guest

aircraft height

Recommended Posts

Hi,I am trying to create a code which shows the aircrafts height over ground I am aware of Radio height but that does not take in account of CoG height.This is my code but it does not work appropiate. Any ideas what is wrong ? BrgdsEugen 80,128,128"/> %((A:Plane Altitude, feet) (A:Ground Altitude, feet) 256 / - )%!04d!

Share this post


Link to post
Share on other sites
Help AVSIM continue to serve you!
Please donate today!

Why "256 /"? For C gauge this might be correct, but XML ghauges don't need rescaling (I hope). The result should be identical to radio height though.Arne Bartels

Share this post


Link to post
Share on other sites

Arne,I looked in the MS SDK and it said that 256 did'nt know that was only for c-gauges. You are right the result is the same. Is there a variable for CoG height ?BrgdsEugen

Share this post


Link to post
Share on other sites

There is CG PERCENT, but I don't know what this really means. It might say something about how far CoG is for or aft, but nothing about height.Arne Bartels

Share this post


Link to post
Share on other sites

That variable would be for supersonic aircraft that uses fuel to shift the CoG(i.e the Concorde).

Share this post


Link to post
Share on other sites

Hi EugenTo the best of my knowledge, there is no solution for that unless you can retrieve (and substract) from the final (Plane altitude - Ground altitude) result the CoG height. This value is defined in the aircraft.cfg file (it is the static_cg_height value in the contact_points section) ; I'm not aware of the possibility to read it directly from the sim variables ; my AFSD application (which is a VB program, not a XML gauge) directly reads it from the aircraft.cfg. Finally, the CoG percent variable is a longitudinal offset describing the current CoG position (on the longitudinal axis) as % of MAC, from the reference point..nothing to do with CoG height above groundNot sure it will help in the present caseHerv

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this