Jump to content
Sign in to follow this  
old_doggie

Fuel used gauge

Recommended Posts

Hi all,I'm new in XML and also strings is not my best in XML gauges.I found some code that shows the total fuel that was used, butit's not exactly what i want.Can anyone help how to change this string to show fuel burned inKilograms, and only one tank (left, or Right) ?Thanks for any help, i just stack with this gauge.%((G:Var2) (A:fuel total quantity weight, pounds) near - (G:Var1) *)%!04s!I look for XML tutorials but the only one i found was www.fs2x.comtutorials but there is no much explanation about strings and howto use integers. Is there any real good tutorial about using FSstrings and variables ?Thanks againMax .M

Share this post


Link to post
Share on other sites

Try:-%((G:Var2) (A:fuel left quantity,gallons) 2.72 * near - (G:Var1) *)%!04s!Get the ' 2.72 ' weight per gallon factor from the *.air file item No 312 which is in pounds and convert it to Kgs.Regards, Ted.

Share this post


Link to post
Share on other sites

Or you can try this:(%((A:FUEL LEFT QUANTITY, meter cubed) (A:FUEL WEIGHT PER GALLON, kilogram per cubic meter) *)%!d! kgs)Douglas

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...