June 6, 200421 yr 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
June 6, 200421 yr 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" Jan "Beatus ille qui procul negotiis..."
Create an account or sign in to comment