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.

Extracting info from Aircraft.cfg

Featured Replies

Hi GangI want to extract the "static_cg_height" height from the aircraft.cfg file to input into a RADALT gauge for choppers. I want the RADALT to read zero when the chopper is on the ground, and right now I have to subtract the static height from the radalt height to make it zero. This can be a real pain when dealing with multiple aircraft.%((P:Units of measure, enum) 2 == if{ (A:Radio height, meters) 1.8 - } els{ (A:Radio height, feet) 4.3 - })%!3d!{dpl=RAD}Is there a way just to extract the info I need and input it into the gauge?Steve

I think is much easyer to do in C

I don't know how to extract a data from an aircraft file (except using FSUIPC to get the aircraft.cfg file location), but I have another solution for you. As I develop my gauges in C, I know how to do it in C but not in XML. Here is my solution:When the aircraft is on ground (you can know this with the variable AIRCRAFT_ON_GROUND), its radio altitude is 0, so you can read the RADIO_HEIGHT value, and store it in a variable which represents the CG height. After that, you just have to retract this value to the radio altitude read by RADIO_HEIGHT, and you will have the real radio altitude.Hope it helps...Eric

Eric,Excellent tipThanksSteve

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.