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.

Order of sim/flightmodel/weight/m_fuel_total array

Featured Replies

Hello. I am writing a global (for all aircraft) app for XP12 and I need to identify the leftwing, rightwing and center fuel levels (quantities) seperately. The quantities are stored in "sim/flightmodel/weight/m_fuel_total" array (9 values) but I noticed that the order of the array is not standart. For example;

default A330 values are like this: L1-C1-R1-L2-R2-C2-?-?-?
A350: C-L-R-?-?-?-?-?-?

It never follows a specific order.

I know I can use "sim/cockpit2/fuel/fuel_level_indicated_left" and "sim/cockpit2/fuel/fuel_level_indicated_right", and then subtract those two values from "sim/flightmodel/weight/m_fuel_total" and find the center tank total but "sim/cockpit2/fuel/fuel_level_indicated_left and right" are not reliable since they are not activated before main battery is switched on and they may have failures.

I am really confused. When we go to XPlane menu: "/Flight/Edit Weight & Balance" we have a loadsheet which means it is possible to find reliable values for leftwing-rightwing and center tank, but how.. Anyone can help?

Edited by buick552

they are in the order as defined in planemaker, left to right top to bottom iirc.

AutoATC Developer

What @mSparks said. PlaneMaker order matters.

The load manager utility for a tool I'm working just lets users decide on the refueling sequence, simply because fuel systems just come in too many sizes and shapes.

Edited by Bjoern

7950X3D + 7900 XT + 64 GB + Linux | 4800H + RTX2060 + 32 GB + Linux
My add-ons from my FS9/FSX days

  • Author

Thanks a lot guys, mSparks you made my day. "sim/aircraft/overflow/acf_tank_X" is very useful in terms of identifying which tank is that. If it's < 0 then it's a left wing tank, == 0 then it's a body tank, > 1 then it's right wing tank. Best wishes and happy new year guys..

Archived

This topic is now archived and is closed to further replies.

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.