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

FSXA XML Needed for Fuel Used

Messages
3
Country
unitedstates
Greetings all!

I'm presently in the process of modifying the engine management display of a recently release PC-12 that is displaying an incorrect weight for fuel indication and fuel used counter. I have successfully managed to correct the total fuel weight display (it was originally displaying liters) to display pounds.

Now the issue I am having is that I can't for the life of me get the "fuel used" indication to display fuel used in pounds. At the present it is indicating in negative liters initially until the counter is reset. It will then start counting up in liters. So after only a few minutes the reading is off by quite a bit and it will worsen over time due to the imperial/metric differences.

Is there a simple way of creating a fuel used counter that can be reset to zero by mouse click and shows the readout in pounds?

Here is the XML code for the Fuel Used function:

This is the Macro Code
Code:
</Macro>
        <Macro id="Fuel Used lbs" Name="FUELUSEDLBS">
            <MacroValue>(L:fuelQuantitylts, liters) (A:FUEL TOTAL QUANTITY, liters) -</MacroValue>

This is the element code:
Code:
<Element id="Gauge_USED">
            <FloatPosition>210.000,506.000</FloatPosition>
            <Visibility>(A:CIRCUIT GENERAL PANEL ON, bool)</Visibility>
            <GaugeText id="GaugeText">
                <Bright>True</Bright>
                <FontFace>LCD_EIS_PC12</FontFace>               
                <FontColor>@PanelFontColor</FontColor>
                <FontHeightScript>@FontSizeCellEDISmall</FontHeightScript>
                <HorizontalAlign>RIGHT</HorizontalAlign>
                <GaugeString>%(@FUELUSEDLBS 0.5 + int)%!d!</GaugeString>  
                <Length>4</Length>
                <WidthScript>150</WidthScript>
                <HeightScript>@FontSizeCellEDI</HeightScript>
                <Transparent>True</Transparent>
            </GaugeText>
        </Element>

This is the code for the reset on the counter:

Code:
<MouseArea id="CLICK">
            <FloatPosition>0.000,0.000</FloatPosition>
            <Size>60,60</Size>
            <CursorType>Hand</CursorType>
            <MouseClick id="MouseClick">
                <Script>(A:FUEL TOTAL QUANTITY, liters) (&gt;L:fuelQuantitylts, liters)
                    (P:local time, seconds) (&gt;L:FUEL_INIT_TIMER, number)
                </Script>
                <ClickRepeat>True</ClickRepeat>
            </MouseClick>
        </MouseArea>

I appreciate any tips and insight as this is rather far from my norm of texture design.
 
Where is the conversion of liters to pounds factor? 1.76 (Jet for the PC-12)

<MacroValue>(L:fuelQuantitylts, liters) (A:FUEL TOTAL QUANTITY, liters) - 1.76 *</MacroValue>

how about just using gallons

<Script>(A:FUEL TOTAL QUANTITY, gallons) (&gt;L:fuelQuantitylts, gallons)
(P:local time, seconds) (&gt;L:FUEL_INIT_TIMER, number)



<MacroValue>(L:fuelQuantitylts, gallons) (A:FUEL TOTAL QUANTITY, gallons) - 6.7 *</MacroValue>

http://www.streamline-ops.com/en/info/fuel_weight_conversion_tables/
 
Last edited:
I'm not entirely sure why that value was omitted, it was like that fresh out of the install. It was exactly what was needed to correct the discrepancy. It also allowed me to clean up my edit of the total fuel weight display. Everything is now working as it should. And I have bookmarked that page for future reference.

Thanks for the assistance and info Ron!
 
Back
Top