Skip to content
View in the app

A better way to browse. Learn more.

The AVSIM Community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

aircraft height

Featured Replies

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!

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

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

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

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

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

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.