• Which the release of FS2020 we see an explosition of activity on the forun and of course we are very happy to see this. But having all questions about FS2020 in one forum becomes a bit messy. So therefore we would like to ask you all to use the following guidelines when posting your questions:

    • Tag FS2020 specific questions with the MSFS2020 tag.
    • Questions about making 3D assets can be posted in the 3D asset design forum. Either post them in the subforum of the modelling tool you use or in the general forum if they are general.
    • Questions about aircraft design can be posted in the Aircraft design forum
    • Questions about airport design can be posted in the FS2020 airport design forum. Once airport development tools have been updated for FS2020 you can post tool speciifc questions in the subforums of those tools as well of course.
    • Questions about terrain design can be posted in the FS2020 terrain design forum.
    • Questions about SimConnect can be posted in the SimConnect forum.

    Any other question that is not specific to an aspect of development or tool can be posted in the General chat forum.

    By following these guidelines we make sure that the forums remain easy to read for everybody and also that the right people can find your post to answer it.

Fuel Used (Burned) XML

Messages
203
Country
us-newyork
Hi,
Got the below xml string in my gauge for the fuel total quantity:

<String>%((A:fuel total quantity, gallons) 6.6 *)%!7d!</String>

Could you possibly help me with the xml string for the Fuel Used or burned, also
the xml for the Fuel used reset.
Your help would be much appreciated.
Many Thanks
Peter
 
Hi Peter,

The Fuel Used can be displayed as:

<String>%((L:Fuel Hold,gallons) (A:fuel total quantity, gallons) - 6.6 * )%!7d!</String>


The Fuel Used Reset button should have:

<Area Left="65" Right="80" Top="40" Bottom="55">
<Cursor Type="Hand"/>
<Click>(A:fuel total quantity, gallons) (&gt;L:Fuel Hold,gallons)
</Click>
</Area>

The Fuel Used Reset button needs to be pushed at the beginning of the flight or, better still, the command

(A:fuel total quantity, gallons) (&gt;L:Fuel Hold,gallons)

needs to be included in an initialisation routine somewhere.

There are probably many other ways of achieving the same result. I know this method works as I have used it myself.

Walter
 
In FSX or later you could also use A:GENERAL ENG FUEL USED SINCE START, pounds

It measures the fuel used since the last engine start. From the SDK, not tested by me.
 
<String>%((L:Fuel Hold,gallons) (A:fuel total quantity, gallons) - 6.6 * )%!7d!</String>
Ah. Possibly not - IIRC the simulator takes 1 US gallon = 6.0 lbs not, as you correctly code, 6.6lbs per US gallon. I've fallen foul of that one as Avgas, JetA and Mogas are all different weights, but the sim treats them all as 6.0lbs.
 
That is not always true. FS2004 uses 6.7 for JetA and 6.0 for Avgas.
 
Back
Top