March 29, 200323 yr 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!
March 29, 200323 yr 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
March 29, 200323 yr 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
March 29, 200323 yr 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
March 30, 200323 yr That variable would be for supersonic aircraft that uses fuel to shift the CoG(i.e the Concorde).
March 30, 200323 yr 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
Create an account or sign in to comment