Sign in to follow this  
Guest Skymed

(A:FUEL TOTAL QUANTITY,percent)

Recommended Posts

I would have thought that (A:FUEL TOTAL QUANTITY,percent) read the fuel quantity from either the aircraft.cfg or the *.air file, which I assume it must. However, when using this variable to read the fuel quantity and display it in a string in XML, I have to apply a factor, depending on the fuel in gallons set in the aircraft.cfg, to get the string to read 100% when the tank is full.Example:Aircraft.cfg settings:fuel_type = 2number_of_tank_selectors = 1Center1 = -6.870, 0, 0, 75.000, 0electric_pump=0number_of_tank_selectors = 1 Fuel set to 1 tank, 75 gall capacity.So to get that to read 100% when full I have to do this:%((A:FUEL TOTAL QUANTITY,percent) 3.512 * d 0 == ?)%!3d!Question: What am I doing wrong? Am I using the wrong A Var for this? Why the need to apply a variable to adjust the readout to read 100% dependant on the amount of fuel set in the tank?help is always appreciated.Steve

Share this post


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

Steve,May be this one??%((A:FUEL TOTAL QUANTITY,gallons) (A:FUEL TOTAL CAPACITY,gallons) / 100 *)%!d!Hope it helps,Jan"Beatus Ille Procul Negotiis"

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