Jump to content
Sign in to follow this  
Guest Skymed

(A:FUEL TOTAL QUANTITY,percent)

Recommended Posts

Guest Skymed

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

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
Guest Skymed

Yup, that did it.Thanks Jan

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  

  • Tom Allensworth,
    Founder of AVSIM Online


  • Flight Simulation's Premier Resource!

    AVSIM is a free service to the flight simulation community. AVSIM is staffed completely by volunteers and all funds donated to AVSIM go directly back to supporting the community. Your donation here helps to pay our bandwidth costs, emergency funding, and other general costs that crop up from time to time. Thank you for your support!

    Click here for more information and to see all donations year to date.
×
×
  • Create New...